@ckeditor/ckeditor-cloud-services-collaboration 52.7.0 → 52.7.1
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/dist/index.js +19 -19
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/ckeditorcloudserviceserror.js +1 -1
- package/src/ckeditorcloudservicesservererror.js +1 -1
- package/src/collaborativeeditingservice/collaborativeeditingservice.js +2 -2
- 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 +2 -2
- 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.js +2 -2
- package/src/descriptor.js +1 -1
- package/src/descriptors/keyvaluedescriptor.js +1 -1
- package/src/editor/editorservice.js +2 -2
- 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/revisionhistoryservice.js +2 -2
- 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 +2 -2
- 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.d.ts +1 -1
- package/src/version.js +1 -1
- package/src/websocketgateway/channel.js +2 -2
- package/src/websocketgateway/messages/channelmessage.js +1 -1
- package/src/websocketgateway/parser/packetparser.js +1 -1
- package/src/websocketgateway/parser/packets/bytesbytespacketdatamessage.js +2 -2
- package/src/websocketgateway/parser/packets/numberbytespacketdatamessage.js +2 -2
- package/src/websocketgateway/parser/packets/numbernumberpacketdatamessag.js +2 -2
- package/src/websocketgateway/parser/packets/numberobjectpacketdatamessage.js +2 -2
- package/src/websocketgateway/parser/packets/numberstringpacketdatamessag.js +2 -2
- package/src/websocketgateway/parser/packets/objectbufferpacketdatamessage.js +2 -2
- package/src/websocketgateway/parser/packets/objectobjectpacketdatamessage.js +2 -2
- package/src/websocketgateway/parser/packets/packagedatamessage.js +1 -1
- package/src/websocketgateway/parser/packets/packetmessage.js +2 -2
- package/src/websocketgateway/parser/packets/packetoptionsmessage.js +1 -1
- package/src/websocketgateway/parser/packets/stringbytespacketdatamessage.js +2 -2
- package/src/websocketgateway/parser/packets/stringnumberpacketdatamessage.js +2 -2
- package/src/websocketgateway/parser/packets/stringobjectpacketdatamessage.js +2 -2
- package/src/websocketgateway/parser/packets/stringstringpacketdatamessage.js +2 -2
- package/src/websocketgateway/parser/parser.js +2 -2
- package/src/websocketgateway/parser/parserutils.js +1 -1
- package/src/websocketgateway/requestsmanager.js +1 -1
- package/src/websocketgateway/websocketgateway.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor-cloud-services-collaboration",
|
|
3
|
-
"version": "52.7.
|
|
3
|
+
"version": "52.7.1",
|
|
4
4
|
"description": "CKEditor Cloud Services Collaboration low-level API is required by CKEditor 5 Collaboration features to enable real-time collaborative editing in CKEditor 5.",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default class CKEditorCloudServicesError extends Error{['context'];['code'];['data'];constructor(
|
|
23
|
+
export default class CKEditorCloudServicesError extends Error{['context'];['code'];['data'];constructor(_0x5f18b2,_0x4bab98,_0x3a484c=null,_0x2702de={}){super('cloud-services-internal-error:\x20'+_0x5f18b2),this['context']=_0x4bab98,this['code']=_0x3a484c,this['data']=_0x2702de,this['name']='CKEditorError';}static['fromPublicError'](_0x151634){return new CKEditorCloudServicesError(function(_0x4e972b){let _0x1d55f7='cloud-services-error:\x20'+_0x4e972b['message'];return _0x4e972b['data']&&(_0x1d55f7+='\x0aError\x20data:\x20'+JSON['stringify'](_0x4e972b['data'])),_0x4e972b['explanation']&&(_0x1d55f7+='\x0aExplanation:\x20'+_0x4e972b['explanation']),_0x4e972b['action']&&(_0x1d55f7+='\x0aAction:\x20'+_0x4e972b['action']),_0x4e972b['traceId']&&(_0x1d55f7+='\x0aTraceId:\x20'+_0x4e972b['traceId']),_0x4e972b['code']&&(_0x1d55f7+='\x0aCode:\x20'+_0x4e972b['code']),_0x1d55f7;}(_0x151634),_0x151634);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default class CKEditorCloudServicesServerError extends Error{['code'];['traceId'];['data'];constructor(
|
|
23
|
+
export default class CKEditorCloudServicesServerError extends Error{['code'];['traceId'];['data'];constructor(_0x290bc5,_0x442a70){super(),this['name']='CKEditorCloudServicesServerError',this['stack']=void 0x0,this['message']=_0x290bc5,this['code']=_0x442a70['code'],this['traceId']=_0x442a70['traceId'],this['data']=_0x442a70['data'];}static['fromPublicError'](_0x305970){return new CKEditorCloudServicesServerError(function(_0x1b0fa3){let _0x234ec3='cloud-services-server-error:\x20'+_0x1b0fa3['message'];return _0x1b0fa3['explanation']&&(_0x234ec3+='\x0aExplanation:\x20'+_0x1b0fa3['explanation']),_0x1b0fa3['action']&&(_0x234ec3+='\x0aAction:\x20'+_0x1b0fa3['action']),_0x1b0fa3['traceId']&&(_0x234ec3+='\x0aTraceId:\x20'+_0x1b0fa3['traceId']),_0x1b0fa3['code']&&(_0x234ec3+='\x0aCode:\x20'+_0x1b0fa3['code']),_0x234ec3;}(_0x305970),_0x305970);}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{v4 as
|
|
24
|
-
EmitterMixin(){static ['_SERVICE']=0x1;['_bundleVersion'];['_id'];['_isConnected'];['_wsGateway'];['_channel'];['_connectedSessions'];constructor(
|
|
23
|
+
import{v4 as _0x2faea3}from'uuid';import{EmitterMixin}from'ckeditor5/src/utils.js';import _0x2ed2b0 from'./../messagescompressor.js';import _0x4e9c71 from'./../sessions/sessions.js';import _0x2cfa38 from'./messages/collaborativeeditingconnectmessage.js';import _0x945903 from'./messages/collaborativeeditingupdatemessage.js';import _0x449fbf from'./messages/collaborativeeditingreconnectmessage.js';import _0x527e6d from'./responses/collaborativeeditingresponse.js';import _0x2f3950 from'./responses/collaborativeeditingconnectresponse.js';import _0x3651fd from'./../websocketgateway/websocketgateway.js';import _0x90b791 from'../ckeditorcloudserviceserror.js';import _0x24de46 from'../errors/ServiceNotConnectedError.js';import _0x3ac53a from'./responses/getdocumentdetailsresponse.js';import _0x102f13 from'./messages/getdocumentdetailsmessage.js';export const _SERVICE=0x1;export default class extends/* #__PURE__ -- @preserve */
|
|
24
|
+
EmitterMixin(){static ['_SERVICE']=0x1;['_bundleVersion'];['_id'];['_isConnected'];['_wsGateway'];['_channel'];['_connectedSessions'];constructor(_0x239442,_0x3faf70){if(super(),!_0x239442)throw new TypeError('Param\x20\x22bundleVersion\x22\x20must\x20be\x20provided.');this['_id']=_0x3faf70??_0x2faea3(),this['_isConnected']=!0x1,this['_bundleVersion']=_0x239442;}['getId'](){return this['_id'];}['isConnected'](){return this['_isConnected'];}['connect'](_0x5a1ca8,_0x4dc871={'buffers':[],'types':[]},_0x3b2dca){const _0x48521c=new _0x2cfa38(this['getId'](),_0x4dc871['buffers'],_0x4dc871['types'],this['_bundleVersion'],_0x3b2dca);return this['_connect'](_0x5a1ca8,_0x48521c);}['reconnect'](_0x344b6d,_0x153ccb){if(this['isConnected']())throw new _0x90b791('Cannot\x20reconnect\x20to\x20already\x20connected\x20service.',_0x344b6d);return this['_connect'](_0x344b6d,new _0x449fbf(this['getId'](),_0x153ccb,this['_bundleVersion']));}['disconnect'](){this['_isConnected']&&(this['_isConnected']=!0x1,this['_wsGateway']&&(this['stopListening'](this['_wsGateway']),this['_wsGateway']=void 0x0),this['_channel']&&(this['stopListening'](this['_channel']),this['_channel']=void 0x0),this['_connectedSessions']&&(this['_connectedSessions']['disconnect'](),this['_connectedSessions']=void 0x0),this['fire']('disconnected'),this['stopListening']());}async['getDocumentDetails'](){const _0x25b9cf=new _0x102f13(this['getId']());if(!this['_wsGateway'])throw new _0x24de46('Collaborative\x20Editing',this);const _0x4670d2=await this['_wsGateway']['_sendRequest'](0x1,_0x102f13['TYPE'],_0x2ed2b0['encode'](_0x25b9cf));return _0x2ed2b0['decode'](_0x4670d2,_0x3ac53a);}async['sendOperations'](_0x263381,_0x3ddf76,_0xf11273){if(!_0x263381?.['types']?.['length'])throw new _0x90b791('Cannot\x20send\x20empty\x20update.',this['_wsGateway']);const _0x21f088='number'==typeof _0x3ddf76?_0x3ddf76:parseInt(_0x3ddf76);if(!Number['isInteger'](_0x21f088)||_0x21f088<0x0)throw new _0x90b791('Base\x20version\x20not\x20provided.',this['_wsGateway']);const _0xbc2918=new _0x945903(this['getId'](),_0x263381['buffers'],_0x263381['types'],_0x21f088,[],_0xf11273);if(!this['_wsGateway']||!this['_isConnected'])throw new _0x24de46('Collaborative\x20Editing',this);const _0x4da53a=await this['_wsGateway']['_sendRequest'](0x1,_0x945903['TYPE'],_0x2ed2b0['encode'](_0xbc2918));return _0x2ed2b0['decode'](_0x4da53a,_0x527e6d);}async['getConnectedSessions'](){if(!this['_isConnected'])throw new _0x24de46('Collaborative\x20Editing',this);return this['_connectedSessions']||(this['_connectedSessions']=await _0x4e9c71['getConnectedSessions'](this['_wsGateway'],this['_id'],0x1)),this['_connectedSessions'];}static['getConnectedSessions'](_0x188af3,_0x3fd8f4){return _0x4e9c71['getConnectedSessions'](_0x188af3,_0x3fd8f4,0x1);}async['_connect'](_0x5b962e,_0x324ee4){if(this['isConnected']())return;if(_0x5b962e['state']!==_0x3651fd['STATE_CONNECTED'])throw new _0x90b791('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x5b962e);this['_wsGateway']=_0x5b962e,this['stopListening'](_0x5b962e,'change:state');const _0x285501=await _0x5b962e['_sendRequest'](0x1,_0x324ee4['constructor']['TYPE'],_0x2ed2b0['encode'](_0x324ee4)),_0x3a14bd=_0x2ed2b0['decode'](_0x285501,_0x2f3950);return this['listenTo'](_0x5b962e,'change:state',(_0x3a8e7d,_0x4f5ddf,_0x436a5b)=>this['_onWsGatewayStateChange'](_0x436a5b),{'priority':_0x3651fd['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0x5b962e,_0x3a14bd['channel']),this['_isConnected']=!0x0,this['fire']('connected'),_0x3a14bd;}['_connectToChannel'](_0x22df82,_0xfba0b7){this['_channel']=_0x22df82['_getChannel'](0x1,_0xfba0b7),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x945903['TYPE']),(_0x595759,_0x33508d)=>{const _0x11144a=_0x2ed2b0['decode'](_0x33508d,_0x945903);this['fire']('operationsReceived',_0x11144a['baseVersion'],_0x11144a['data'],_0x11144a['metadata']);});}['_onWsGatewayStateChange'](_0x13270e){_0x13270e===_0x3651fd['STATE_DISCONNECTED']&&this['disconnect']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import
|
|
23
|
+
import _0xcc9c27 from'./../../descriptor.js';export default class OperationMetadataDescriptor extends _0xcc9c27{static ['DESCRIPTOR_NAME']='OperationMetadataDescriptor';static ['DESCRIPTOR']={'fields':{'userId':{'type':'string','id':0x1},'type':{'type':'string','id':0x2},'createdAt':{'type':'string','id':0x3}}};static['toJSON']({createdAt:_0x99e7aa,..._0x5e6ac2}){const _0x1f9c4f={..._0x5e6ac2};return _0x99e7aa?.['toISOString']&&(_0x1f9c4f['createdAt']=_0x99e7aa['toISOString']()),_0x1f9c4f;}static['fromJSON']({createdAt:_0x2ce23f,..._0x5886bf}){const _0x5649be={..._0x5886bf};return _0x2ce23f&&(_0x5649be['createdAt']=new Date(_0x2ce23f)),_0x5649be;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default class OperationMetadataHelpers{static['prepareMetadataForOperations'](
|
|
23
|
+
export default class OperationMetadataHelpers{static['prepareMetadataForOperations'](_0x33c2d3,_0x6263b6){if(!_0x33c2d3?.['length']||!_0x6263b6?.['length'])return[];const _0x3b41fa=[];let _0x404d47=0x0;for(const _0x3ee8d1 of _0x33c2d3)if(0x0!==_0x3ee8d1){if(!_0x6263b6[_0x404d47])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');_0x3b41fa['push'](_0x6263b6[_0x404d47]),_0x404d47++;}else _0x3b41fa['push'](_0x3b41fa[_0x3b41fa['length']-0x1]);return _0x3b41fa;}static['removeUnnecessaryMetadata'](_0x986d4b,_0x18909f){if(!_0x986d4b?.['length']||!_0x18909f?.['length'])return[];const _0x1541ca=[];for(let _0x3c62e6=0x0;_0x3c62e6<_0x986d4b['length'];_0x3c62e6++)if(0x0!==_0x986d4b[_0x3c62e6]){if(!_0x18909f[_0x3c62e6])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');_0x1541ca['push'](_0x18909f[_0x3c62e6]);}return _0x1541ca;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import
|
|
23
|
+
import _0xcbdc59 from'./../../message.js';export default class CollaborativeEditingConnectMessage extends _0xcbdc59{['id'];['buffers'];['types'];['bundleVersion'];['lastOperationId'];static ['TYPE']='11';static ['READABLE_TYPE_NAME']='connectToDocument';static ['DESCRIPTOR_NAME']='CollaborativeEditingConnectMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'bundleVersion':{'type':'string','id':0x2},'buffers':{'rule':'repeated','type':'bytes','id':0x3},'types':{'rule':'repeated','type':'uint32','id':0x4},'lastOperationId':{'type':'string','id':0x5}}};constructor(_0x12e24c,_0x5ca0c7,_0x335e21,_0x24a419,_0x412b3b=''){super(),this['id']=_0x12e24c,this['buffers']=_0x5ca0c7,this['types']=_0x335e21,this['bundleVersion']=_0x24a419,this['lastOperationId']=_0x412b3b;}['toJSON'](){return{'id':this['id'],'buffers':this['buffers'],'types':this['types'],'bundleVersion':this['bundleVersion'],'lastOperationId':this['lastOperationId']};}static['fromJSON'](_0x2b64ce){return new CollaborativeEditingConnectMessage(_0x2b64ce['id'],_0x2b64ce['buffers'],_0x2b64ce['types'],_0x2b64ce['bundleVersion'],_0x2b64ce['lastOperationId']);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import
|
|
23
|
+
import _0x373612 from'./../../message.js';export default class CollaborativeEditingReconnectMessage extends _0x373612{['id'];['lastKnowVersion'];['bundleVersion'];static ['TYPE']='12';static ['READABLE_TYPE_NAME']='reconnectToDocument';static ['DESCRIPTOR_NAME']='CollaborativeEditingReconnectMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'bundleVersion':{'type':'string','id':0x2},'lastKnowVersion':{'type':'uint32','id':0x3}}};constructor(_0x52822d,_0x3b745b,_0x40c270){super(),this['id']=_0x52822d,this['lastKnowVersion']=_0x3b745b,this['bundleVersion']=_0x40c270;}['toJSON'](){return{'id':this['id'],'bundleVersion':this['bundleVersion'],'lastKnowVersion':this['lastKnowVersion']};}static['fromJSON'](_0x5b6677){return new CollaborativeEditingReconnectMessage(_0x5b6677['id'],_0x5b6677['lastKnowVersion'],_0x5b6677['bundleVersion']);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import
|
|
23
|
+
import _0x28dcbe from'./../../message.js';import _0x48f58c from'./../helpers/operationmetadatahelpers.js';import _0x41b616 from'../descriptors/operationmetadatadescriptor.js';export default class CollaborativeEditingUpdateMessage extends _0x28dcbe{['id'];['buffers'];['types'];['baseVersion'];['metadata'];['lastOperationId'];static ['TYPE']='13';static ['READABLE_TYPE_NAME']='updateDocument';static ['DESCRIPTOR_NAME']='CollaborativeEditingUpdateMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'baseVersion':{'type':'uint32','id':0x2},'buffers':{'rule':'repeated','type':'bytes','id':0x3},'types':{'rule':'repeated','type':'uint32','id':0x4},'metadata':{'rule':'repeated','type':'OperationMetadataDescriptor','id':0x6},'lastOperationId':{'type':'string','id':0x7}}};constructor(_0x1c8bfb,_0x38eca4,_0x3d947f,_0x44f181,_0x177b2a=[],_0x4352ed=''){super(),this['id']=_0x1c8bfb,this['buffers']=_0x38eca4,this['types']=_0x3d947f,this['baseVersion']=_0x44f181,this['metadata']=_0x177b2a,this['lastOperationId']=_0x4352ed;}get['data'](){return{'buffers':this['buffers'],'types':this['types'],'baseVersion':this['baseVersion'],'lastOperationId':this['lastOperationId']};}['toJSON'](){return{'id':this['id'],'buffers':this['buffers'],'types':this['types'],'baseVersion':this['baseVersion'],'metadata':_0x48f58c['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](_0x41b616['toJSON']),'lastOperationId':this['lastOperationId']};}static['fromJSON'](_0x1152d2){return new CollaborativeEditingUpdateMessage(_0x1152d2['id'],_0x1152d2['buffers'],_0x1152d2['types'],_0x1152d2['baseVersion'],_0x48f58c['prepareMetadataForOperations'](_0x1152d2['types'],_0x1152d2['metadata'])['map'](_0x41b616['fromJSON']),_0x1152d2['lastOperationId']);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import
|
|
23
|
+
import _0x295a3d from'../../message.js';export default class GetDocumentDetailsMessage extends _0x295a3d{['documentId'];static ['TYPE']='14';static ['READABLE_TYPE_NAME']='getDocumentDetails';static ['DESCRIPTOR_NAME']='GetDocumentDetailsMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1},'environmentId':{'type':'string','id':0x2}}};constructor(_0x733f4b){super(),this['documentId']=_0x733f4b;}get['data'](){return{'documentId':this['documentId']};}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x4ac298){return new GetDocumentDetailsMessage(_0x4ac298['documentId']);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import
|
|
23
|
+
import _0x376bbf from'./../../message.js';import _0x34c5a1 from'./../helpers/operationmetadatahelpers.js';import _0xc07075 from'../descriptors/operationmetadatadescriptor.js';export default class CollaborativeEditingConnectResponse extends _0x376bbf{['channel'];['version'];['buffers'];['types'];['offset'];['metadata'];['initData'];['sessionId'];['lastOperationId'];['sessionCreatedAt'];static ['DESCRIPTOR_NAME']='CollaborativeEditingConnectResponse';static ['DESCRIPTOR']=((()=>({'fields':{'channel':{'type':'string','id':0x1},'offset':{'type':'uint32','id':0x2},'version':{'type':'uint32','id':0x3},'buffers':{'rule':'repeated','type':'bytes','id':0x4},'types':{'rule':'repeated','type':'uint32','id':0x5},'metadata':{'rule':'repeated','type':_0xc07075['DESCRIPTOR_NAME'],'id':0x7},'initData':{'type':'string','id':0x8},'isInitialized':{'type':'bool','id':0x9},'sessionId':{'type':'string','id':0xa},'lastOperationId':{'type':'string','id':0xb},'sessionCreatedAt':{'type':'string','id':0xc}}}))());constructor(_0x850d9f,_0x14717d,_0x2a5287=[],_0x5f1ac5=[],_0x320bd5=0x0,_0x269e4e=[],_0x272c7b=null,_0x4b57a5='',_0xb48527='',_0x24006b=null){super(),this['channel']=_0x850d9f,this['version']=_0x14717d,this['buffers']=_0x2a5287,this['types']=_0x5f1ac5,this['offset']=_0x320bd5,this['metadata']=_0x269e4e,this['initData']=_0x272c7b,this['sessionId']=_0x4b57a5,this['lastOperationId']=_0xb48527,this['sessionCreatedAt']=_0x24006b;}get['data'](){return{'buffers':this['buffers'],'types':this['types'],'baseVersion':this['version']-this['types']['length'],'lastOperationId':this['lastOperationId'],'sessionCreatedAt':this['sessionCreatedAt']};}get['wereChangesApplied'](){return!this['types']?.['length']&&null===this['initData'];}['toJSON'](){return{'channel':this['channel'],'version':this['version'],'sessionId':this['sessionId'],'buffers':this['buffers'],'types':this['types'],'offset':this['offset'],'metadata':_0x34c5a1['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](_0xc07075['toJSON']),'initData':this['initData']??'','isInitialized':'string'==typeof this['initData'],'lastOperationId':this['lastOperationId'],'sessionCreatedAt':this['sessionCreatedAt']?this['sessionCreatedAt']['toISOString']():null};}static['create'](_0x308cb3){return new CollaborativeEditingConnectResponse(_0x308cb3['channel'],_0x308cb3['version'],_0x308cb3['buffers'],_0x308cb3['types'],_0x308cb3['offset'],_0x308cb3['metadata'],_0x308cb3['initData'],_0x308cb3['sessionId'],_0x308cb3['lastOperationId'],_0x308cb3['sessionCreatedAt']);}static['fromJSON'](_0x5b630e){let _0x6ae455=null;return!0x0===_0x5b630e['isInitialized']?_0x6ae455=_0x5b630e['initData']??'':'boolean'!=typeof _0x5b630e['isInitialized']&&_0x5b630e['initData']&&(_0x6ae455=_0x5b630e['initData']),CollaborativeEditingConnectResponse['create']({'channel':_0x5b630e['channel'],'version':_0x5b630e['version'],'buffers':_0x5b630e['buffers'],'types':_0x5b630e['types'],'offset':_0x5b630e['offset'],'metadata':_0x34c5a1['prepareMetadataForOperations'](_0x5b630e['types'],_0x5b630e['metadata'])['map'](_0xc07075['fromJSON']),'initData':_0x6ae455,'sessionId':_0x5b630e['sessionId'],'lastOperationId':_0x5b630e['lastOperationId'],'sessionCreatedAt':_0x5b630e['sessionCreatedAt']?new Date(_0x5b630e['sessionCreatedAt']):null});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import
|
|
23
|
+
import _0x2da248 from'./../../message.js';import _0x24a585 from'./../helpers/operationmetadatahelpers.js';import _0x145f1b from'../descriptors/operationmetadatadescriptor.js';export default class CollaborativeEditingResponse extends _0x2da248{['version'];['buffers'];['types'];['metadata'];['lastOperationId'];['lastOperationAcceptedAt'];static ['DESCRIPTOR_NAME']='CollaborativeEditingResponse';static ['DESCRIPTOR']={'fields':{'version':{'type':'uint32','id':0x1},'buffers':{'rule':'repeated','type':'bytes','id':0x2},'types':{'rule':'repeated','type':'uint32','id':0x3},'metadata':{'rule':'repeated','type':'OperationMetadataDescriptor','id':0x5},'lastOperationId':{'type':'string','id':0x6},'lastOperationAcceptedAt':{'type':'string','id':0x7}}};constructor(_0x411afd,_0x4d3a0d=[],_0x5489d7=[],_0x4b03f4=[],_0x18081e='',_0x2c12c9=null){super(),this['version']=_0x411afd,this['buffers']=_0x4d3a0d,this['types']=_0x5489d7,this['metadata']=_0x4b03f4,this['lastOperationId']=_0x18081e,this['lastOperationAcceptedAt']=_0x2c12c9;}get['data'](){return{'buffers':this['buffers'],'types':this['types'],'baseVersion':this['version']-this['types']['length'],'lastOperationId':this['lastOperationId'],'lastOperationAcceptedAt':this['lastOperationAcceptedAt']};}get['wereChangesApplied'](){return!this['types']?.['length'];}['toJSON'](){return{'version':this['version'],'buffers':this['buffers'],'types':this['types'],'metadata':_0x24a585['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](_0x145f1b['toJSON']),'lastOperationId':this['lastOperationId'],'lastOperationAcceptedAt':this['lastOperationAcceptedAt']instanceof Date?this['lastOperationAcceptedAt']['toISOString']():this['lastOperationAcceptedAt']};}static['fromJSON'](_0x1b18df){return new CollaborativeEditingResponse(_0x1b18df['version'],_0x1b18df['buffers'],_0x1b18df['types'],_0x24a585['prepareMetadataForOperations'](_0x1b18df['types'],_0x1b18df['metadata'])['map'](_0x145f1b['fromJSON']),_0x1b18df['lastOperationId'],_0x1b18df['lastOperationAcceptedAt']?new Date(_0x1b18df['lastOperationAcceptedAt']):null);}static['create'](_0x2f5bcf){return new CollaborativeEditingResponse(_0x2f5bcf['version'],_0x2f5bcf['buffers'],_0x2f5bcf['types'],_0x2f5bcf['metadata'],_0x2f5bcf['lastOperationId'],_0x2f5bcf['lastOperationAcceptedAt']?new Date(_0x2f5bcf['lastOperationAcceptedAt']):null);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import
|
|
23
|
+
import _0xf009f1 from'./../../message.js';export default class GetDocumentDetailsResponse extends _0xf009f1{['lastDocumentSession'];['currentDocumentSession'];static ['DESCRIPTOR_NAME']='GetDocumentDetailsResponse';static ['DESCRIPTOR']={'fields':{'lastDocumentSessionId':{'type':'string','id':0x1},'lastDocumentSessionOperationId':{'type':'string','id':0x2},'currentDocumentSessionId':{'type':'string','id':0x3},'currentDocumentSessionVersion':{'type':'uint32','id':0x4},'currentDocumentSessionOperationId':{'type':'string','id':0x5}}};constructor(_0x4e5809,_0x49966c){super(),this['lastDocumentSession']=_0x4e5809,this['currentDocumentSession']=_0x49966c;}get['data'](){return{'lastDocumentSessionId':this['lastDocumentSession']?.['id'],'lastDocumentSessionOperationId':this['lastDocumentSession']?.['lastOperationId'],'currentDocumentSessionId':this['currentDocumentSession']?.['id'],'currentDocumentSessionVersion':this['currentDocumentSession']?.['version'],'currentDocumentSessionOperationId':this['currentDocumentSession']?.['lastOperationId']};}['toJSON'](){return{'lastDocumentSessionId':this['lastDocumentSession']?.['id'],'lastDocumentSessionOperationId':this['lastDocumentSession']?.['lastOperationId'],'currentDocumentSessionId':this['currentDocumentSession']?.['id'],'currentDocumentSessionVersion':this['currentDocumentSession']?.['version'],'currentDocumentSessionOperationId':this['currentDocumentSession']?.['lastOperationId']};}static['fromJSON'](_0x5af547){const _0x42eaf8=_0x5af547['lastDocumentSessionId']?{'id':_0x5af547['lastDocumentSessionId'],'lastOperationId':_0x5af547['lastDocumentSessionOperationId']}:void 0x0,_0xa909cf=_0x5af547['currentDocumentSessionId']?{'lastOperationId':_0x5af547['currentDocumentSessionOperationId'],'version':_0x5af547['currentDocumentSessionVersion'],'id':_0x5af547['currentDocumentSessionId']}:void 0x0;return new GetDocumentDetailsResponse(_0x42eaf8,_0xa909cf);}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{EmitterMixin}from'ckeditor5/src/utils.js';import
|
|
24
|
-
EmitterMixin(){['_documentId'];['_isConnected']=!0x1;['_wsGateway'];['_channel'];['_connectedSessions'];static ['_SERVICE']=0x9;constructor(
|
|
23
|
+
import{EmitterMixin}from'ckeditor5/src/utils.js';import _0x4c9262 from'./../messagescompressor.js';import _0x4a326f from'./messages/addcommentmessage.js';import _0x2f493c from'./responses/addcommentresponse.js';import _0x19e034 from'./messages/connectmessage.js';import _0x2a6d20 from'./responses/connectresponse.js';import _0x470213 from'./messages/removecommentmessage.js';import _0x3eb55d from'./messages/removecommentthreadmessage.js';import _0x13c494 from'./messages/updatecommentmessage.js';import _0x2dc8de from'./messages/getcommentthreadmessage.js';import _0x582657 from'./responses/getcommentthreadresponse.js';import _0x39d592 from'./messages/getdocumentthreadsmessage.js';import _0x57f3d4 from'./responses/getdocumentthreadsresponse.js';import _0x1e07b7,{WEB_SOCKET_GATEWAY_STATES}from'./../websocketgateway/websocketgateway.js';import _0x559749 from'./../ckeditorcloudserviceserror.js';import _0x5d8261 from'../sessions/sessions.js';import _0x417912 from'../errors/ServiceNotConnectedError.js';import _0x83364b from'../ckeditorcloudservicesservererror.js';import _0x3a1612 from'./responses/comment-threads/addcommentthreadresponse.js';import _0xc085f3 from'./messages/comment-threads/addcommentthreadmessage.js';import _0x1f4929 from'./messages/comment-threads/resolvecommentthreadmessage.js';import _0x31d4ee from'./messages/comment-threads/reopencommentthreadmessage.js';import _0x5bb99d from'./messages/comment-threads/updatecommentthreadmessage.js';import _0x12d11a from'./responses/comment-threads/resolvecommentthreadresponse.js';export const _SERVICE=0x9;class CommentsService extends/* #__PURE__ -- @preserve */
|
|
24
|
+
EmitterMixin(){['_documentId'];['_isConnected']=!0x1;['_wsGateway'];['_channel'];['_connectedSessions'];static ['_SERVICE']=0x9;constructor(_0x578e2e){super(),this['_documentId']=_0x578e2e;}get['isConnected'](){return this['_isConnected'];}async['connect'](_0xb9a3b6){if(this['_isConnected'])return;if(_0xb9a3b6['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new _0x559749('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0xb9a3b6);const _0x3cace0=new _0x19e034(this['_documentId']);this['_wsGateway']=_0xb9a3b6,this['stopListening'](_0xb9a3b6,'change:state');const _0x37e70f=await _0xb9a3b6['_sendRequest'](0x9,_0x19e034['TYPE'],_0x4c9262['encode'](_0x3cace0)),{channel:_0x15f0d6,threads:_0x1a0a4d}=_0x4c9262['decode'](_0x37e70f,_0x2a6d20);return this['listenTo'](_0xb9a3b6,'change:state',(_0x3af94c,_0x555f96,_0x9bc28b)=>this['_onWsGatewayStateChange'](_0x9bc28b),{'priority':_0x1e07b7['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0xb9a3b6,_0x15f0d6),this['_isConnected']=!0x0,this['fire']('connected'),_0x1a0a4d;}['disconnect'](){this['_isConnected']&&(this['_isConnected']=!0x1,this['_wsGateway']&&(this['stopListening'](this['_wsGateway']),this['_wsGateway']=void 0x0),this['_channel']&&(this['stopListening'](this['_channel']),this['_channel']=void 0x0),this['_connectedSessions']&&(this['_connectedSessions']['disconnect'](),this['_connectedSessions']=void 0x0),this['fire']('disconnected'),this['stopListening']());}async['addComment'](_0x4c5ec3,_0x5ec1a2,_0x5b32eb,_0x4ff8ef){const _0x387bf2=new _0x4a326f(this['_documentId'],_0x4c5ec3,_0x5b32eb,_0x5ec1a2,void 0x0,void 0x0,_0x4ff8ef),_0x539a72=await this['_sendRequest'](_0x4a326f['TYPE'],_0x387bf2);return _0x4c9262['decode'](_0x539a72,_0x2f493c);}async['updateComment'](_0x36afc0,_0x46539e,_0x3cb93b,_0x33b21d){const _0x2144e6=void 0x0!==_0x33b21d,_0xf53863=new _0x13c494(this['_documentId'],_0x36afc0,_0x46539e,_0x3cb93b,_0x33b21d,_0x2144e6);await this['_sendRequest'](_0x13c494['TYPE'],_0xf53863);}async['removeComment'](_0x42b318,_0x15c68c){const _0x1d975e=new _0x470213(this['_documentId'],_0x42b318,_0x15c68c);await this['_sendRequest'](_0x470213['TYPE'],_0x1d975e);}async['removeCommentThread'](_0x57cab6){const _0x1168b6=new _0x3eb55d(this['_documentId'],_0x57cab6);await this['_sendRequest'](_0x3eb55d['TYPE'],_0x1168b6);}async['addCommentThread'](_0x34b10e){const _0x18e970=new _0xc085f3(this['_documentId'],_0x34b10e['commentThreadId'],_0x34b10e['comments']?.['map'](_0x2d0ff3=>({..._0x2d0ff3,'documentId':this['_documentId'],'commentThreadId':_0x34b10e['commentThreadId']})),_0x34b10e['context'],_0x34b10e['resolvedBy'],_0x34b10e['createdAt'],_0x34b10e['resolvedAt'],_0x34b10e['deletedAt'],_0x34b10e['attributes']),_0x51660e=await this['_sendRequest'](_0xc085f3['TYPE'],_0x18e970);return _0x4c9262['decode'](_0x51660e,_0x3a1612);}async['resolveCommentThread'](_0x9f933f){const _0x721e6b=new _0x1f4929(_0x9f933f,this['_documentId']),_0x32df35=await this['_sendRequest'](_0x1f4929['TYPE'],_0x721e6b);return _0x4c9262['decode'](_0x32df35,_0x12d11a);}async['reopenCommentThread'](_0x5e76d2){const _0xbdd7c5=new _0x31d4ee(_0x5e76d2,this['_documentId']);await this['_sendRequest'](_0x31d4ee['TYPE'],_0xbdd7c5);}async['updateCommentThread'](_0x45acff){const _0x456305=new _0x5bb99d(_0x45acff['commentThreadId'],this['_documentId'],_0x45acff['context'],_0x45acff['attributes'],_0x45acff['unlinkedAt']);await this['_sendRequest'](_0x5bb99d['TYPE'],_0x456305);}async['getCommentThread'](_0x572d0f,_0x89ed10=0x1){const _0x2e2593=new _0x2dc8de(_0x572d0f,this['_documentId']);try{const _0x564645=await this['_sendRequest'](_0x2dc8de['TYPE'],_0x2e2593),_0x37f816=_0x4c9262['decode'](_0x564645,_0x582657);return{'commentThreadId':_0x37f816['commentThreadId'],'comments':_0x37f816['comments'],'attributes':_0x37f816['attributes'],'context':_0x37f816['context'],'resolvedAt':_0x37f816['resolvedAt'],'resolvedBy':_0x37f816['resolvedBy'],'deletedAt':_0x37f816['deletedAt'],'unlinkedAt':_0x37f816['unlinkedAt']};}catch(_0x521c6b){if('CKEditorCloudServicesServerError'===_0x521c6b['name']&&'404'===_0x521c6b['code']&&_0x89ed10<0x5)return await(_0x5e9792=0x64*_0x89ed10,new Promise(_0x4f2e6a=>{setTimeout(_0x4f2e6a,_0x5e9792);})),this['getCommentThread'](_0x572d0f,_0x89ed10+0x1);if('CKEditorCloudServicesServerError'===_0x521c6b['name'])throw _0x521c6b;throw _0x83364b['fromPublicError'](_0x521c6b);}var _0x5e9792;}async['getDocumentThreads'](){const _0x1e30de=new _0x39d592(this['_documentId']),_0xed81fa=await this['_sendRequest'](_0x39d592['TYPE'],_0x1e30de),{threads:_0x1cb5f2}=_0x4c9262['decode'](_0xed81fa,_0x57f3d4);return{'threads':_0x1cb5f2};}async['getConnectedSessions'](){if(!this['_isConnected'])throw new _0x417912('Comments',this);return this['_connectedSessions']||(this['_connectedSessions']=await _0x5d8261['getConnectedSessions'](this['_wsGateway'],this['_documentId'],0x9)),this['_connectedSessions'];}['_connectToChannel'](_0x44f9ff,_0x3e30b4){this['_channel']=_0x44f9ff['_getChannel'](CommentsService['_SERVICE'],_0x3e30b4),this['_channel']&&(this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x4a326f['TYPE']),(_0x19234b,_0x125b3e)=>{const _0x464c88=_0x4c9262['decode'](_0x125b3e,_0x4a326f);this['fire']('commentAdded',_0x464c88);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x470213['TYPE']),(_0x406763,_0x55362c)=>{const _0x495bcf=_0x4c9262['decode'](_0x55362c,_0x470213);this['fire']('commentRemoved',_0x495bcf);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x13c494['TYPE']),(_0x1c7cdc,_0x6501ff)=>{const _0x143662=_0x4c9262['decode'](_0x6501ff,_0x13c494);this['fire']('commentUpdated',_0x143662);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x3eb55d['TYPE']),(_0x55a4f7,_0x1f3212)=>{const _0x3377c5=_0x4c9262['decode'](_0x1f3212,_0x3eb55d);this['fire']('commentThreadRemoved',_0x3377c5);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0xc085f3['TYPE']),(_0x31346b,_0xb4b5c7)=>{const _0x23e785=_0x4c9262['decode'](_0xb4b5c7,_0xc085f3);this['fire']('commentThreadAdded',_0x23e785);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x5bb99d['TYPE']),(_0x22e856,_0x30b7fc)=>{const _0x15d038=_0x4c9262['decode'](_0x30b7fc,_0x5bb99d);this['fire']('commentThreadUpdated',_0x15d038);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x1f4929['TYPE']),(_0x417833,_0x12cd2a)=>{const _0x35ee03=_0x4c9262['decode'](_0x12cd2a,_0x1f4929);this['fire']('commentThreadResolved',_0x35ee03);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x31d4ee['TYPE']),(_0x177531,_0x58fbf7)=>{const _0x12a689=_0x4c9262['decode'](_0x58fbf7,_0x31d4ee);this['fire']('commentThreadReopened',_0x12a689);}));}['_onWsGatewayStateChange'](_0x1ce50b){_0x1ce50b===WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['disconnect']();}['_sendRequest'](_0x11de46,_0x5d8cbd){if(!this['_wsGateway']||!this['_isConnected'])throw new _0x417912('Comments',this);return this['_wsGateway']['_sendRequest'](0x9,_0x11de46,_0x4c9262['encode'](_0x5d8cbd));}}export default CommentsService;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import
|
|
23
|
+
import _0x18da16 from'./../../descriptor.js';export default class CommentDescriptor extends _0x18da16{static ['DESCRIPTOR_NAME']='CommentDescriptor';static ['DESCRIPTOR']={'fields':{'commentId':{'id':0x1,'type':'string'},'commentThreadId':{'id':0x2,'type':'string'},'userId':{'id':0x3,'type':'string'},'content':{'id':0x4,'type':'string'},'documentId':{'id':0x5,'type':'string'},'createdAt':{'id':0x6,'type':'string'},'attributes':{'id':0x7,'type':'string'}}};static['toJSON'](_0x2e82eb){return{..._0x2e82eb,'createdAt':_0x2e82eb['createdAt']?.['toISOString'](),'attributes':_0x2e82eb['attributes']?JSON['stringify'](_0x2e82eb['attributes']):null};}static['fromJSON'](_0x184970){return{..._0x184970,'createdAt':new Date(_0x184970['createdAt']),'attributes':_0x184970['attributes']?JSON['parse'](_0x184970['attributes']):null};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import
|
|
23
|
+
import _0x340a85 from'./../../descriptor.js';import _0x368e96 from'./commentdescriptor.js';export default class CommentsThreadDescriptor extends _0x340a85{static ['DESCRIPTOR_NAME']='CommentsThreadDescriptor';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'comments':{'type':'CommentDescriptor','rule':'repeated','id':0x2},'resolvedAt':{'type':'string','id':0x3},'resolvedBy':{'type':'string','id':0x4},'context':{'type':'string','id':0x5},'createdAt':{'type':'string','id':0x6},'deletedAt':{'type':'string','id':0x7},'attributes':{'type':'string','id':0x8},'unlinkedAt':{'type':'string','id':0x9}}};static['toJSON'](_0x11a82a){return{..._0x11a82a,'createdAt':_0x11a82a['createdAt']?.['toISOString'](),'deletedAt':_0x11a82a['deletedAt']?.['toISOString'](),'resolvedAt':_0x11a82a['resolvedAt']?.['toISOString'](),'attributes':_0x11a82a['attributes']?JSON['stringify'](_0x11a82a['attributes']):null,'context':_0x11a82a['context']?JSON['stringify'](_0x11a82a['context']):_0x11a82a['context'],'comments':_0x11a82a['comments']?.['map'](_0x368e96['toJSON']),'unlinkedAt':_0x11a82a['unlinkedAt']?.['toISOString']()};}static['fromJSON'](_0xf1c8c8){return{..._0xf1c8c8,'createdAt':_0xf1c8c8['createdAt']?new Date(_0xf1c8c8['createdAt']):void 0x0,'deletedAt':_0xf1c8c8['deletedAt']?new Date(_0xf1c8c8['deletedAt']):void 0x0,'resolvedAt':_0xf1c8c8['resolvedAt']?new Date(_0xf1c8c8['resolvedAt']):void 0x0,'attributes':_0xf1c8c8['attributes']?JSON['parse'](_0xf1c8c8['attributes']):null,'context':_0xf1c8c8['context']?JSON['parse'](_0xf1c8c8['context']):void 0x0,'comments':_0xf1c8c8['comments']?.['map'](_0x368e96['fromJSON']),'unlinkedAt':_0xf1c8c8['unlinkedAt']?new Date(_0xf1c8c8['unlinkedAt']):void 0x0};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import
|
|
23
|
+
import _0x13d774 from'../../descriptor.js';export default class CommentThreadAddedCommentDescriptor extends _0x13d774{static ['DESCRIPTOR_NAME']='CommentThreadAddedCommentDescriptor';static ['DESCRIPTOR']={'fields':{'commentId':{'id':0x1,'type':'string'},'createdAt':{'id':0x2,'type':'string'}}};static['toJSON'](_0x595510){return{'commentId':_0x595510['commentId'],'createdAt':_0x595510['createdAt']?.['toISOString']()};}static['fromJSON'](_0x3d03ef){return{'commentId':_0x3d03ef['commentId'],'createdAt':new Date(_0x3d03ef['createdAt'])};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import
|
|
23
|
+
import _0x53e7c0 from'./../../message.js';import _0x2df623 from'../descriptors/commentsthreaddescriptor.js';export default class AddCommentMessage extends _0x53e7c0{['documentId'];['commentThreadId'];['content'];['commentId'];['userId'];['attributes'];['commentThread'];['createdAt'];static ['TYPE']='91';static ['READABLE_TYPE_NAME']='addComment';static ['DESCRIPTOR_NAME']='CommentsV2AddCommentMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'content':{'type':'string','id':0x2},'documentId':{'type':'string','id':0x3},'commentId':{'type':'string','id':0x4},'createdAt':{'type':'string','id':0x5},'userId':{'type':'string','id':0x6},'attributes':{'type':'string','id':0x7},'commentThread':{'type':'CommentsThreadDescriptor','id':0x8}}};constructor(_0xe78708,_0x56c311,_0x49298f,_0x4e61ec='',_0x264c8b,_0x433b09='',_0x1a07ae=null,_0x2133a7){super(),this['documentId']=_0xe78708,this['commentThreadId']=_0x56c311,this['content']=_0x49298f,this['commentId']=_0x4e61ec,this['userId']=_0x433b09,this['attributes']=_0x1a07ae,this['commentThread']=_0x2133a7,this['createdAt']=_0x264c8b?new Date(_0x264c8b):'';}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'content':this['content'],'documentId':this['documentId'],'commentId':this['commentId'],'createdAt':this['createdAt']instanceof Date?this['createdAt']['toISOString']():this['createdAt'],'userId':this['userId'],'attributes':JSON['stringify'](this['attributes']),'commentThread':this['commentThread']?_0x2df623['toJSON'](this['commentThread']):void 0x0};}static['fromJSON'](_0x5eef22){return new AddCommentMessage(_0x5eef22['documentId'],_0x5eef22['commentThreadId'],_0x5eef22['content'],_0x5eef22['commentId']?_0x5eef22['commentId']:void 0x0,_0x5eef22['createdAt']?new Date(_0x5eef22['createdAt']):void 0x0,_0x5eef22['userId']?_0x5eef22['userId']:void 0x0,_0x5eef22['attributes']?JSON['parse'](_0x5eef22['attributes']):{},_0x5eef22['commentThread']?_0x2df623['fromJSON'](_0x5eef22['commentThread']):void 0x0);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import
|
|
23
|
+
import _0x4b7a1b from'../../../message.js';import _0x19eaec from'../../descriptors/commentdescriptor.js';export default class AddCommentThreadMessage extends _0x4b7a1b{['documentId'];['commentThreadId'];['comments'];['context'];['resolvedBy'];['attributes'];['createdAt'];['resolvedAt'];['deletedAt'];static ['TYPE']='140';static ['READABLE_TYPE_NAME']='addCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2AddCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1},'commentThreadId':{'type':'string','id':0x2},'context':{'type':'string','id':0x3},'createdAt':{'type':'string','id':0x4},'resolvedAt':{'type':'string','id':0x5},'resolvedBy':{'type':'string','id':0x6},'attributes':{'type':'string','id':0x7},'deletedAt':{'type':'string','id':0x8},'comments':{'type':'CommentDescriptor','rule':'repeated','id':0x9}}};constructor(_0x3da4e7,_0x516698,_0x35de0c=[],_0x337ec7,_0x3a7df6=null,_0x2feb0e=null,_0x2c2ce3=null,_0x3048c0=null,_0x34c05a=null){super(),this['documentId']=_0x3da4e7,this['commentThreadId']=_0x516698,this['comments']=_0x35de0c,this['context']=_0x337ec7,this['resolvedBy']=_0x3a7df6,this['attributes']=_0x34c05a,this['createdAt']=_0x2feb0e?new Date(_0x2feb0e):'',this['resolvedAt']=_0x2c2ce3?new Date(_0x2c2ce3):'',this['deletedAt']=_0x3048c0?new Date(_0x3048c0):'';}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'context':this['context']?JSON['stringify'](this['context']):this['context'],'documentId':this['documentId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']instanceof Date?this['resolvedAt']['toISOString']():this['resolvedAt'],'deletedAt':this['deletedAt']instanceof Date?this['deletedAt']['toISOString']():this['deletedAt'],'createdAt':this['createdAt']instanceof Date?this['createdAt']['toISOString']():this['createdAt'],'attributes':this['attributes']?JSON['stringify'](this['attributes']):this['attributes'],'comments':this['comments']?.['map'](_0x6ff866=>_0x19eaec['toJSON'](_0x6ff866))};}static['fromJSON'](_0x2cdba5){return new AddCommentThreadMessage(_0x2cdba5['documentId'],_0x2cdba5['commentThreadId'],_0x2cdba5['comments']?.['map'](_0x1d1b25=>_0x19eaec['fromJSON']({..._0x1d1b25,'documentId':_0x2cdba5['documentId'],'commentThreadId':_0x2cdba5['commentThreadId']})),_0x2cdba5['context']?JSON['parse'](_0x2cdba5['context']):_0x2cdba5['context'],_0x2cdba5['resolvedBy'],_0x2cdba5['createdAt']?new Date(_0x2cdba5['createdAt']):void 0x0,_0x2cdba5['resolvedAt']?new Date(_0x2cdba5['resolvedAt']):void 0x0,_0x2cdba5['deletedAt']?new Date(_0x2cdba5['deletedAt']):void 0x0,_0x2cdba5['attributes']?JSON['parse'](_0x2cdba5['attributes']):_0x2cdba5['attributes']);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import
|
|
23
|
+
import _0x3525ce from'../../../message.js';export default class ReopenCommentThreadMessage extends _0x3525ce{['commentThreadId'];['documentId'];static ['TYPE']='141';static ['READABLE_TYPE_NAME']='reopenCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2ReopenCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2}}};constructor(_0x423613,_0x353dd0){super(),this['commentThreadId']=_0x423613,this['documentId']=_0x353dd0;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId']};}static['fromJSON'](_0x481fbe){return new ReopenCommentThreadMessage(_0x481fbe['commentThreadId'],_0x481fbe['documentId']);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import
|
|
23
|
+
import _0x5a2a30 from'../../../message.js';export default class ResolveCommentThreadMessage extends _0x5a2a30{['commentThreadId'];['documentId'];['resolvedBy'];['resolvedAt'];static ['TYPE']='142';static ['READABLE_TYPE_NAME']='resolveCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2ResolveCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2},'resolvedBy':{'type':'string','id':0x3},'resolvedAt':{'type':'string','id':0x4}}};constructor(_0x23e856,_0x131331,_0x4bff26,_0x4445f5){super(),this['commentThreadId']=_0x23e856,this['documentId']=_0x131331,this['resolvedBy']=_0x4bff26,this['resolvedAt']=_0x4445f5?new Date(_0x4445f5):void 0x0;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']?.['toISOString']()};}static['fromJSON'](_0x47f1b1){return new ResolveCommentThreadMessage(_0x47f1b1['commentThreadId'],_0x47f1b1['documentId'],_0x47f1b1['resolvedBy'],_0x47f1b1['resolvedAt']);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import
|
|
23
|
+
import _0x106168 from'../../../message.js';export default class UpdateCommentThreadMessage extends _0x106168{['commentThreadId'];['documentId'];['context'];['attributes'];['unlinkedAt'];static ['TYPE']='143';static ['READABLE_TYPE_NAME']='updateCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2UpdateCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2},'context':{'type':'string','id':0x3},'attributes':{'type':'string','id':0x4},'unlinkedAt':{'type':'string','id':0x5}}};constructor(_0x582eb9,_0x97ebcf,_0x4c91d9,_0x29a2bf=null,_0x119e1d=null){super(),this['commentThreadId']=_0x582eb9,this['documentId']=_0x97ebcf,this['context']=_0x4c91d9,this['attributes']=_0x29a2bf,this['unlinkedAt']=_0x119e1d?new Date(_0x119e1d):'';}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'context':this['context']?JSON['stringify'](this['context']):this['context'],'attributes':this['attributes']?JSON['stringify'](this['attributes']):null,'unlinkedAt':this['unlinkedAt']instanceof Date?this['unlinkedAt']['toISOString']():this['unlinkedAt']};}static['fromJSON'](_0xaaa4f8){return new UpdateCommentThreadMessage(_0xaaa4f8['commentThreadId'],_0xaaa4f8['documentId'],_0xaaa4f8['context']?JSON['parse'](_0xaaa4f8['context']):_0xaaa4f8['context'],_0xaaa4f8['attributes']?JSON['parse'](_0xaaa4f8['attributes']):null,_0xaaa4f8['unlinkedAt']?new Date(_0xaaa4f8['unlinkedAt']):null);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import
|
|
23
|
+
import _0x2aa9d9 from'./../../message.js';export default class ConnectMessage extends _0x2aa9d9{['documentId'];static ['TYPE']='92';static ['READABLE_TYPE_NAME']='connectToComment';static ['DESCRIPTOR_NAME']='CommentsV2ConnectMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(_0x4f5413){super(),this['documentId']=_0x4f5413;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x1ab731){return new ConnectMessage(_0x1ab731['documentId']);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import
|
|
23
|
+
import _0x407cb2 from'./../../message.js';export default class GetCommentThreadMessage extends _0x407cb2{['commentThreadId'];['documentId'];static ['TYPE']='93';static ['READABLE_TYPE_NAME']='getComment';static ['DESCRIPTOR_NAME']='CommentsV2GetCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2}}};constructor(_0x70a2eb,_0x2f0fed){super(),this['commentThreadId']=_0x70a2eb,this['documentId']=_0x2f0fed;}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'documentId':this['documentId']};}static['fromJSON'](_0x40b32e){return new GetCommentThreadMessage(_0x40b32e['commentThreadId'],_0x40b32e['documentId']);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import
|
|
23
|
+
import _0xce28f4 from'./../../message.js';export default class GetDocumentThreadsMessage extends _0xce28f4{['documentId'];static ['TYPE']='94';static ['READABLE_TYPE_NAME']='getDocumentThreads';static ['DESCRIPTOR_NAME']='CommentsV2GetDocumentThreadsMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(_0x135b66){super(),this['documentId']=_0x135b66;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x11af59){return new GetDocumentThreadsMessage(_0x11af59['documentId']);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import
|
|
23
|
+
import _0x521e96 from'./../../message.js';export default class RemoveCommentMessage extends _0x521e96{['documentId'];['commentThreadId'];['commentId'];static ['TYPE']='95';static ['READABLE_TYPE_NAME']='removeComment';static ['DESCRIPTOR_NAME']='CommentsV2RemoveCommentMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'commentId':{'type':'string','id':0x2},'documentId':{'type':'string','id':0x3}}};constructor(_0x494ded,_0x57498e,_0x2872d1){super(),this['documentId']=_0x494ded,this['commentThreadId']=_0x57498e,this['commentId']=_0x2872d1;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'commentId':this['commentId']};}static['fromJSON'](_0x459e9d){return new RemoveCommentMessage(_0x459e9d['documentId'],_0x459e9d['commentThreadId'],_0x459e9d['commentId']);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import
|
|
23
|
+
import _0x278ab9 from'./../../message.js';export default class RemoveCommentThreadMessage extends _0x278ab9{['documentId'];['commentThreadId'];static ['TYPE']='97';static ['READABLE_TYPE_NAME']='removeCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2RemoveCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2}}};constructor(_0x283859,_0x2ed07e){super(),this['documentId']=_0x283859,this['commentThreadId']=_0x2ed07e;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId']};}static['fromJSON'](_0x4ea140){return new RemoveCommentThreadMessage(_0x4ea140['documentId'],_0x4ea140['commentThreadId']);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import
|
|
23
|
+
import _0x29ff38 from'./../../message.js';import _0x22257f from'../descriptors/commentsthreaddescriptor.js';export default class UpdateCommentMessage extends _0x29ff38{['documentId'];['commentThreadId'];['commentId'];['content'];['attributes'];['isAttributesUpdated'];['commentThread'];static ['TYPE']='96';static ['READABLE_TYPE_NAME']='updateComment';static ['DESCRIPTOR_NAME']='CommentsV2UpdateCommentMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'commentId':{'type':'string','id':0x2},'content':{'type':'string','id':0x3},'documentId':{'type':'string','id':0x4},'attributes':{'type':'string','id':0x5},'isAttributesUpdated':{'type':'bool','id':0x6},'commentThread':{'type':'CommentsThreadDescriptor','id':0x7}}};constructor(_0x4ac177,_0x557e3b,_0x301830,_0x5d4997,_0x20def5=null,_0x26e63e=!0x1,_0x4630ba){super(),this['documentId']=_0x4ac177,this['commentThreadId']=_0x557e3b,this['commentId']=_0x301830,this['content']=_0x5d4997,this['attributes']=_0x20def5,this['isAttributesUpdated']=_0x26e63e,this['commentThread']=_0x4630ba;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'commentId':this['commentId'],'content':this['content'],'attributes':this['attributes']?JSON['stringify'](this['attributes']):null,'isAttributesUpdated':this['isAttributesUpdated'],'commentThread':this['commentThread']?_0x22257f['toJSON'](this['commentThread']):void 0x0};}static['fromJSON'](_0xbc86a){return new UpdateCommentMessage(_0xbc86a['documentId'],_0xbc86a['commentThreadId'],_0xbc86a['commentId'],_0xbc86a['content'],_0xbc86a['attributes']?JSON['parse'](_0xbc86a['attributes']):null,_0xbc86a['isAttributesUpdated'],_0xbc86a['commentThread']?_0x22257f['fromJSON'](_0xbc86a['commentThread']):void 0x0);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import
|
|
23
|
+
import _0x4a8edc from'./../../message.js';export default class AddCommentResponse extends _0x4a8edc{['commentThreadId'];['commentId'];['createdAt'];static ['DESCRIPTOR_NAME']='CommentsV2AddCommentResponse';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'commentId':{'type':'string','id':0x2},'createdAt':{'type':'string','id':0x3}}};constructor(_0x866036,_0x5b2adc,_0x1cdf7b){super(),this['commentThreadId']=_0x866036,this['commentId']=_0x5b2adc,this['createdAt']=new Date(_0x1cdf7b);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'commentId':this['commentId'],'createdAt':this['createdAt']['toISOString']()};}static['fromJSON'](_0x54346d){return new AddCommentResponse(_0x54346d['commentThreadId'],_0x54346d['commentId'],_0x54346d['createdAt']);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import
|
|
23
|
+
import _0x436f10 from'./../../../message.js';import _0x44677b from'../../descriptors/commentthreadaddedcomment.js';export default class AddCommentThreadResponse extends _0x436f10{['commentThreadId'];['comments'];['createdAt'];static ['DESCRIPTOR_NAME']='CommentsV2AddCommentThreadResponse';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'createdAt':{'type':'string','id':0x2},'comments':{'type':'CommentThreadAddedCommentDescriptor','rule':'repeated','id':0x3}}};constructor(_0x58d398,_0x254f59,_0x34abd1=[]){super(),this['commentThreadId']=_0x58d398,this['comments']=_0x34abd1,this['createdAt']=new Date(_0x254f59);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'createdAt':this['createdAt']['toISOString'](),'comments':this['comments']['map'](_0x4f5795=>_0x44677b['toJSON'](_0x4f5795))};}static['fromJSON'](_0x31fcfb){return new AddCommentThreadResponse(_0x31fcfb['commentThreadId'],_0x31fcfb['createdAt'],_0x31fcfb['comments']['map'](_0x5aebe0=>_0x44677b['fromJSON'](_0x5aebe0)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import
|
|
23
|
+
import _0x78d5eb from'./../../../message.js';export default class ResolveCommentThreadResponse extends _0x78d5eb{['commentThreadId'];['documentId'];['resolvedBy'];['resolvedAt'];static ['DESCRIPTOR_NAME']='CommentsV2ResolveCommentThreadResponse';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2},'resolvedAt':{'type':'string','id':0x3},'resolvedBy':{'type':'string','id':0x4}}};constructor(_0x119df7,_0x395b56,_0xe45eaf,_0x537f65){super(),this['commentThreadId']=_0x119df7,this['documentId']=_0x395b56,this['resolvedBy']=_0xe45eaf,this['resolvedAt']=new Date(_0x537f65);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'documentId':this['documentId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']['toISOString']()};}static['fromJSON'](_0x10e94e){return new ResolveCommentThreadResponse(_0x10e94e['commentThreadId'],_0x10e94e['documentId'],_0x10e94e['resolvedBy'],_0x10e94e['resolvedAt']);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import
|
|
23
|
+
import _0x23c708 from'./../../message.js';import _0x812ac8 from'../descriptors/commentsthreaddescriptor.js';export default class ConnectResponse extends _0x23c708{['channel'];['_threads'];['_threadsV2'];['threads'];static ['DESCRIPTOR_NAME']='CommentsV2ConnectResponse';static ['DESCRIPTOR']={'fields':{'channel':{'type':'string','id':0x1},'threads':{'type':'string','rule':'repeated','id':0x2},'threadsV2':{'type':'CommentsThreadDescriptor','rule':'repeated','id':0x3}}};constructor(_0x31822d,_0x187ae3,_0x27b36e){super(),this['channel']=_0x31822d,this['_threads']=_0x187ae3,this['_threadsV2']=_0x27b36e,this['threads']=_0x27b36e?.['length']?_0x27b36e:_0x187ae3;}['toJSON'](){return{'channel':this['channel'],'threads':this['_threads']?.['map'](_0x6d7fd=>JSON['stringify'](_0x6d7fd)),'threadsV2':this['_threadsV2']?.['map'](_0x812ac8['toJSON'])};}static['fromJSON'](_0x456e61){return new ConnectResponse(_0x456e61['channel'],_0x456e61['threads']?.['map'](_0x4101da=>JSON['parse'](_0x4101da)),_0x456e61['threadsV2']?.['map'](_0x812ac8['fromJSON']));}}
|