@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.
Files changed (104) hide show
  1. package/dist/index.js +19 -19
  2. package/dist/index.js.map +1 -1
  3. package/package.json +1 -1
  4. package/src/ckeditorcloudserviceserror.js +1 -1
  5. package/src/ckeditorcloudservicesservererror.js +1 -1
  6. package/src/collaborativeeditingservice/collaborativeeditingservice.js +2 -2
  7. package/src/collaborativeeditingservice/descriptors/operationmetadatadescriptor.js +1 -1
  8. package/src/collaborativeeditingservice/helpers/operationmetadatahelpers.js +1 -1
  9. package/src/collaborativeeditingservice/messages/collaborativeeditingconnectmessage.js +1 -1
  10. package/src/collaborativeeditingservice/messages/collaborativeeditingreconnectmessage.js +1 -1
  11. package/src/collaborativeeditingservice/messages/collaborativeeditingupdatemessage.js +1 -1
  12. package/src/collaborativeeditingservice/messages/getdocumentdetailsmessage.js +1 -1
  13. package/src/collaborativeeditingservice/responses/collaborativeeditingconnectresponse.js +1 -1
  14. package/src/collaborativeeditingservice/responses/collaborativeeditingresponse.js +1 -1
  15. package/src/collaborativeeditingservice/responses/getdocumentdetailsresponse.js +1 -1
  16. package/src/comments-v2/commentsservice.js +2 -2
  17. package/src/comments-v2/descriptors/commentdescriptor.js +1 -1
  18. package/src/comments-v2/descriptors/commentsthreaddescriptor.js +1 -1
  19. package/src/comments-v2/descriptors/commentthreadaddedcomment.js +1 -1
  20. package/src/comments-v2/messages/addcommentmessage.js +1 -1
  21. package/src/comments-v2/messages/comment-threads/addcommentthreadmessage.js +1 -1
  22. package/src/comments-v2/messages/comment-threads/reopencommentthreadmessage.js +1 -1
  23. package/src/comments-v2/messages/comment-threads/resolvecommentthreadmessage.js +1 -1
  24. package/src/comments-v2/messages/comment-threads/updatecommentthreadmessage.js +1 -1
  25. package/src/comments-v2/messages/connectmessage.js +1 -1
  26. package/src/comments-v2/messages/getcommentthreadmessage.js +1 -1
  27. package/src/comments-v2/messages/getdocumentthreadsmessage.js +1 -1
  28. package/src/comments-v2/messages/removecommentmessage.js +1 -1
  29. package/src/comments-v2/messages/removecommentthreadmessage.js +1 -1
  30. package/src/comments-v2/messages/updatecommentmessage.js +1 -1
  31. package/src/comments-v2/responses/addcommentresponse.js +1 -1
  32. package/src/comments-v2/responses/comment-threads/addcommentthreadresponse.js +1 -1
  33. package/src/comments-v2/responses/comment-threads/resolvecommentthreadresponse.js +1 -1
  34. package/src/comments-v2/responses/connectresponse.js +1 -1
  35. package/src/comments-v2/responses/getcommentthreadresponse.js +1 -1
  36. package/src/comments-v2/responses/getdocumentthreadsresponse.js +1 -1
  37. package/src/compiledmessages.js +2 -2
  38. package/src/descriptor.js +1 -1
  39. package/src/descriptors/keyvaluedescriptor.js +1 -1
  40. package/src/editor/editorservice.js +2 -2
  41. package/src/editor/messages/iseditorbundleuploadedmessage.js +1 -1
  42. package/src/editor/responses/iseditorbundleuploadedresponse.js +1 -1
  43. package/src/errors/ServiceNotConnectedError.js +1 -1
  44. package/src/index.js +1 -1
  45. package/src/message.js +1 -1
  46. package/src/messagescompressor.js +1 -1
  47. package/src/messagesmapper.js +1 -1
  48. package/src/revision-history/descriptors/revisiondescriptor.js +1 -1
  49. package/src/revision-history/messages/revisionhistoryconnectmessage.js +1 -1
  50. package/src/revision-history/messages/revisionhistorygetrevisionmessage.js +1 -1
  51. package/src/revision-history/messages/revisionhistoryreconnectmessage.js +1 -1
  52. package/src/revision-history/messages/revisionhistoryupdaterevisionsmessage.js +1 -1
  53. package/src/revision-history/responses/revisionhistoryconnectresponse.js +1 -1
  54. package/src/revision-history/responses/revisionhistorygetrevisionresponse.js +1 -1
  55. package/src/revision-history/responses/revisionhistoryupdaterevisionsresponse.js +1 -1
  56. package/src/revision-history/revisionhistoryservice.js +2 -2
  57. package/src/sessions/descriptors/sessiondescriptor.js +1 -1
  58. package/src/sessions/messages/sessionsconnectmessage.js +1 -1
  59. package/src/sessions/messages/socketconnectmessage.js +1 -1
  60. package/src/sessions/messages/socketdisconnectmessage.js +1 -1
  61. package/src/sessions/responses/sessionsconnectresponse.js +1 -1
  62. package/src/sessions/sessioncollection.js +1 -1
  63. package/src/sessions/sessions.js +1 -1
  64. package/src/track-changes/descriptors/suggestiondescriptor.js +1 -1
  65. package/src/track-changes/messages/addsuggestionmessage.js +1 -1
  66. package/src/track-changes/messages/batchUpdateSuggestionsStateMessage.js +1 -1
  67. package/src/track-changes/messages/connectmessage.js +1 -1
  68. package/src/track-changes/messages/getallsuggestionsmessage.js +1 -1
  69. package/src/track-changes/messages/getsuggestionmessage.js +1 -1
  70. package/src/track-changes/messages/updatesuggestionmessage.js +1 -1
  71. package/src/track-changes/responses/addsuggestionresponse.js +1 -1
  72. package/src/track-changes/responses/connectresponse.js +1 -1
  73. package/src/track-changes/responses/getallsuggestionsresponse.js +1 -1
  74. package/src/track-changes/responses/getsuggestionresponse.js +1 -1
  75. package/src/track-changes/trackchangesservice.js +2 -2
  76. package/src/users/descriptors/userdescriptor.js +1 -1
  77. package/src/users/messages/getmanyusersmessage.js +1 -1
  78. package/src/users/messages/getusermessage.js +1 -1
  79. package/src/users/responses/getmanyusersresponse.js +1 -1
  80. package/src/users/responses/getuserresponse.js +1 -1
  81. package/src/users/user.js +1 -1
  82. package/src/version.d.ts +1 -1
  83. package/src/version.js +1 -1
  84. package/src/websocketgateway/channel.js +2 -2
  85. package/src/websocketgateway/messages/channelmessage.js +1 -1
  86. package/src/websocketgateway/parser/packetparser.js +1 -1
  87. package/src/websocketgateway/parser/packets/bytesbytespacketdatamessage.js +2 -2
  88. package/src/websocketgateway/parser/packets/numberbytespacketdatamessage.js +2 -2
  89. package/src/websocketgateway/parser/packets/numbernumberpacketdatamessag.js +2 -2
  90. package/src/websocketgateway/parser/packets/numberobjectpacketdatamessage.js +2 -2
  91. package/src/websocketgateway/parser/packets/numberstringpacketdatamessag.js +2 -2
  92. package/src/websocketgateway/parser/packets/objectbufferpacketdatamessage.js +2 -2
  93. package/src/websocketgateway/parser/packets/objectobjectpacketdatamessage.js +2 -2
  94. package/src/websocketgateway/parser/packets/packagedatamessage.js +1 -1
  95. package/src/websocketgateway/parser/packets/packetmessage.js +2 -2
  96. package/src/websocketgateway/parser/packets/packetoptionsmessage.js +1 -1
  97. package/src/websocketgateway/parser/packets/stringbytespacketdatamessage.js +2 -2
  98. package/src/websocketgateway/parser/packets/stringnumberpacketdatamessage.js +2 -2
  99. package/src/websocketgateway/parser/packets/stringobjectpacketdatamessage.js +2 -2
  100. package/src/websocketgateway/parser/packets/stringstringpacketdatamessage.js +2 -2
  101. package/src/websocketgateway/parser/parser.js +2 -2
  102. package/src/websocketgateway/parser/parserutils.js +1 -1
  103. package/src/websocketgateway/requestsmanager.js +1 -1
  104. 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.0",
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(_0x2a9f13,_0x3bf693,_0x410ebf=null,_0x205e91={}){super('cloud-services-internal-error:\x20'+_0x2a9f13),this['context']=_0x3bf693,this['code']=_0x410ebf,this['data']=_0x205e91,this['name']='CKEditorError';}static['fromPublicError'](_0x5d3cdb){return new CKEditorCloudServicesError(function(_0x7a4cb3){let _0x2e11ac='cloud-services-error:\x20'+_0x7a4cb3['message'];return _0x7a4cb3['data']&&(_0x2e11ac+='\x0aError\x20data:\x20'+JSON['stringify'](_0x7a4cb3['data'])),_0x7a4cb3['explanation']&&(_0x2e11ac+='\x0aExplanation:\x20'+_0x7a4cb3['explanation']),_0x7a4cb3['action']&&(_0x2e11ac+='\x0aAction:\x20'+_0x7a4cb3['action']),_0x7a4cb3['traceId']&&(_0x2e11ac+='\x0aTraceId:\x20'+_0x7a4cb3['traceId']),_0x7a4cb3['code']&&(_0x2e11ac+='\x0aCode:\x20'+_0x7a4cb3['code']),_0x2e11ac;}(_0x5d3cdb),_0x5d3cdb);}}
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(_0x14569d,_0x540d1d){super(),this['name']='CKEditorCloudServicesServerError',this['stack']=void 0x0,this['message']=_0x14569d,this['code']=_0x540d1d['code'],this['traceId']=_0x540d1d['traceId'],this['data']=_0x540d1d['data'];}static['fromPublicError'](_0x2f86e0){return new CKEditorCloudServicesServerError(function(_0x5b4b01){let _0x285f4f='cloud-services-server-error:\x20'+_0x5b4b01['message'];return _0x5b4b01['explanation']&&(_0x285f4f+='\x0aExplanation:\x20'+_0x5b4b01['explanation']),_0x5b4b01['action']&&(_0x285f4f+='\x0aAction:\x20'+_0x5b4b01['action']),_0x5b4b01['traceId']&&(_0x285f4f+='\x0aTraceId:\x20'+_0x5b4b01['traceId']),_0x5b4b01['code']&&(_0x285f4f+='\x0aCode:\x20'+_0x5b4b01['code']),_0x285f4f;}(_0x2f86e0),_0x2f86e0);}}
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 _0x13dad2}from'uuid';import{EmitterMixin}from'ckeditor5/src/utils.js';import _0x49fde6 from'./../messagescompressor.js';import _0x4eafd7 from'./../sessions/sessions.js';import _0xa9af73 from'./messages/collaborativeeditingconnectmessage.js';import _0x4d13f5 from'./messages/collaborativeeditingupdatemessage.js';import _0x3810cd from'./messages/collaborativeeditingreconnectmessage.js';import _0x2acf53 from'./responses/collaborativeeditingresponse.js';import _0x1de0db from'./responses/collaborativeeditingconnectresponse.js';import _0x3c826f from'./../websocketgateway/websocketgateway.js';import _0x34ee1a from'../ckeditorcloudserviceserror.js';import _0x5e79df from'../errors/ServiceNotConnectedError.js';import _0x2048a7 from'./responses/getdocumentdetailsresponse.js';import _0x2a1122 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(_0x178132,_0x194eca){if(super(),!_0x178132)throw new TypeError('Param\x20\x22bundleVersion\x22\x20must\x20be\x20provided.');this['_id']=_0x194eca??_0x13dad2(),this['_isConnected']=!0x1,this['_bundleVersion']=_0x178132;}['getId'](){return this['_id'];}['isConnected'](){return this['_isConnected'];}['connect'](_0x1c6ff7,_0x2ea723={'buffers':[],'types':[]},_0x1e877a){const _0x41b412=new _0xa9af73(this['getId'](),_0x2ea723['buffers'],_0x2ea723['types'],this['_bundleVersion'],_0x1e877a);return this['_connect'](_0x1c6ff7,_0x41b412);}['reconnect'](_0x23dc1c,_0x586fe4){if(this['isConnected']())throw new _0x34ee1a('Cannot\x20reconnect\x20to\x20already\x20connected\x20service.',_0x23dc1c);return this['_connect'](_0x23dc1c,new _0x3810cd(this['getId'](),_0x586fe4,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 _0x37efcd=new _0x2a1122(this['getId']());if(!this['_wsGateway'])throw new _0x5e79df('Collaborative\x20Editing',this);const _0x591a91=await this['_wsGateway']['_sendRequest'](0x1,_0x2a1122['TYPE'],_0x49fde6['encode'](_0x37efcd));return _0x49fde6['decode'](_0x591a91,_0x2048a7);}async['sendOperations'](_0x276bd0,_0x2b6737,_0x313e3a){if(!_0x276bd0?.['types']?.['length'])throw new _0x34ee1a('Cannot\x20send\x20empty\x20update.',this['_wsGateway']);const _0x90592='number'==typeof _0x2b6737?_0x2b6737:parseInt(_0x2b6737);if(!Number['isInteger'](_0x90592)||_0x90592<0x0)throw new _0x34ee1a('Base\x20version\x20not\x20provided.',this['_wsGateway']);const _0x47f1ae=new _0x4d13f5(this['getId'](),_0x276bd0['buffers'],_0x276bd0['types'],_0x90592,[],_0x313e3a);if(!this['_wsGateway']||!this['_isConnected'])throw new _0x5e79df('Collaborative\x20Editing',this);const _0x126dd6=await this['_wsGateway']['_sendRequest'](0x1,_0x4d13f5['TYPE'],_0x49fde6['encode'](_0x47f1ae));return _0x49fde6['decode'](_0x126dd6,_0x2acf53);}async['getConnectedSessions'](){if(!this['_isConnected'])throw new _0x5e79df('Collaborative\x20Editing',this);return this['_connectedSessions']||(this['_connectedSessions']=await _0x4eafd7['getConnectedSessions'](this['_wsGateway'],this['_id'],0x1)),this['_connectedSessions'];}static['getConnectedSessions'](_0x542c56,_0x2f4a8a){return _0x4eafd7['getConnectedSessions'](_0x542c56,_0x2f4a8a,0x1);}async['_connect'](_0x1b56af,_0x2659f5){if(this['isConnected']())return;if(_0x1b56af['state']!==_0x3c826f['STATE_CONNECTED'])throw new _0x34ee1a('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x1b56af);this['_wsGateway']=_0x1b56af,this['stopListening'](_0x1b56af,'change:state');const _0x32a30c=await _0x1b56af['_sendRequest'](0x1,_0x2659f5['constructor']['TYPE'],_0x49fde6['encode'](_0x2659f5)),_0x2d1d4c=_0x49fde6['decode'](_0x32a30c,_0x1de0db);return this['listenTo'](_0x1b56af,'change:state',(_0xa36e1f,_0x146b49,_0x16cc75)=>this['_onWsGatewayStateChange'](_0x16cc75),{'priority':_0x3c826f['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0x1b56af,_0x2d1d4c['channel']),this['_isConnected']=!0x0,this['fire']('connected'),_0x2d1d4c;}['_connectToChannel'](_0x19e9a6,_0x9db4e5){this['_channel']=_0x19e9a6['_getChannel'](0x1,_0x9db4e5),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x4d13f5['TYPE']),(_0x3f0674,_0x10a2f0)=>{const _0x4b94e2=_0x49fde6['decode'](_0x10a2f0,_0x4d13f5);this['fire']('operationsReceived',_0x4b94e2['baseVersion'],_0x4b94e2['data'],_0x4b94e2['metadata']);});}['_onWsGatewayStateChange'](_0x3d62c4){_0x3d62c4===_0x3c826f['STATE_DISCONNECTED']&&this['disconnect']();}}
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 _0x56e843 from'./../../descriptor.js';export default class OperationMetadataDescriptor extends _0x56e843{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:_0x3473c0,..._0x2541fb}){const _0x5bf1b9={..._0x2541fb};return _0x3473c0?.['toISOString']&&(_0x5bf1b9['createdAt']=_0x3473c0['toISOString']()),_0x5bf1b9;}static['fromJSON']({createdAt:_0x34f77e,..._0x26a5f0}){const _0x3ced2b={..._0x26a5f0};return _0x34f77e&&(_0x3ced2b['createdAt']=new Date(_0x34f77e)),_0x3ced2b;}}
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'](_0x1c9902,_0x20bff6){if(!_0x1c9902?.['length']||!_0x20bff6?.['length'])return[];const _0x242bc4=[];let _0x2c1c54=0x0;for(const _0x2feaa0 of _0x1c9902)if(0x0!==_0x2feaa0){if(!_0x20bff6[_0x2c1c54])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');_0x242bc4['push'](_0x20bff6[_0x2c1c54]),_0x2c1c54++;}else _0x242bc4['push'](_0x242bc4[_0x242bc4['length']-0x1]);return _0x242bc4;}static['removeUnnecessaryMetadata'](_0x184739,_0x684919){if(!_0x184739?.['length']||!_0x684919?.['length'])return[];const _0x21f5b3=[];for(let _0x27f4a1=0x0;_0x27f4a1<_0x184739['length'];_0x27f4a1++)if(0x0!==_0x184739[_0x27f4a1]){if(!_0x684919[_0x27f4a1])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');_0x21f5b3['push'](_0x684919[_0x27f4a1]);}return _0x21f5b3;}}
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 _0x4efda4 from'./../../message.js';export default class CollaborativeEditingConnectMessage extends _0x4efda4{['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(_0x3c5bff,_0x406157,_0x49d175,_0x5ac274,_0x557fa4=''){super(),this['id']=_0x3c5bff,this['buffers']=_0x406157,this['types']=_0x49d175,this['bundleVersion']=_0x5ac274,this['lastOperationId']=_0x557fa4;}['toJSON'](){return{'id':this['id'],'buffers':this['buffers'],'types':this['types'],'bundleVersion':this['bundleVersion'],'lastOperationId':this['lastOperationId']};}static['fromJSON'](_0x39c283){return new CollaborativeEditingConnectMessage(_0x39c283['id'],_0x39c283['buffers'],_0x39c283['types'],_0x39c283['bundleVersion'],_0x39c283['lastOperationId']);}}
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 _0x28271f from'./../../message.js';export default class CollaborativeEditingReconnectMessage extends _0x28271f{['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(_0x33f799,_0x3ef035,_0x1e86d8){super(),this['id']=_0x33f799,this['lastKnowVersion']=_0x3ef035,this['bundleVersion']=_0x1e86d8;}['toJSON'](){return{'id':this['id'],'bundleVersion':this['bundleVersion'],'lastKnowVersion':this['lastKnowVersion']};}static['fromJSON'](_0x3fc1ae){return new CollaborativeEditingReconnectMessage(_0x3fc1ae['id'],_0x3fc1ae['lastKnowVersion'],_0x3fc1ae['bundleVersion']);}}
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 _0x442187 from'./../../message.js';import _0x12a1be from'./../helpers/operationmetadatahelpers.js';import _0x3cec11 from'../descriptors/operationmetadatadescriptor.js';export default class CollaborativeEditingUpdateMessage extends _0x442187{['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(_0x1bbea2,_0x373ea9,_0x219981,_0x2c3799,_0xc42b6=[],_0x2f01b5=''){super(),this['id']=_0x1bbea2,this['buffers']=_0x373ea9,this['types']=_0x219981,this['baseVersion']=_0x2c3799,this['metadata']=_0xc42b6,this['lastOperationId']=_0x2f01b5;}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':_0x12a1be['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](_0x3cec11['toJSON']),'lastOperationId':this['lastOperationId']};}static['fromJSON'](_0x224779){return new CollaborativeEditingUpdateMessage(_0x224779['id'],_0x224779['buffers'],_0x224779['types'],_0x224779['baseVersion'],_0x12a1be['prepareMetadataForOperations'](_0x224779['types'],_0x224779['metadata'])['map'](_0x3cec11['fromJSON']),_0x224779['lastOperationId']);}}
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 _0x1b43b8 from'../../message.js';export default class GetDocumentDetailsMessage extends _0x1b43b8{['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(_0x6d07e4){super(),this['documentId']=_0x6d07e4;}get['data'](){return{'documentId':this['documentId']};}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x1b1cff){return new GetDocumentDetailsMessage(_0x1b1cff['documentId']);}}
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 _0x168739 from'./../../message.js';import _0x6af632 from'./../helpers/operationmetadatahelpers.js';import _0x177be4 from'../descriptors/operationmetadatadescriptor.js';export default class CollaborativeEditingConnectResponse extends _0x168739{['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':_0x177be4['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(_0x10a039,_0x32b74e,_0x257038=[],_0x54ac0c=[],_0x33844e=0x0,_0x3284aa=[],_0x150d39=null,_0x58e11c='',_0x1759c1='',_0x161cc5=null){super(),this['channel']=_0x10a039,this['version']=_0x32b74e,this['buffers']=_0x257038,this['types']=_0x54ac0c,this['offset']=_0x33844e,this['metadata']=_0x3284aa,this['initData']=_0x150d39,this['sessionId']=_0x58e11c,this['lastOperationId']=_0x1759c1,this['sessionCreatedAt']=_0x161cc5;}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':_0x6af632['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](_0x177be4['toJSON']),'initData':this['initData']??'','isInitialized':'string'==typeof this['initData'],'lastOperationId':this['lastOperationId'],'sessionCreatedAt':this['sessionCreatedAt']?this['sessionCreatedAt']['toISOString']():null};}static['create'](_0x4958ce){return new CollaborativeEditingConnectResponse(_0x4958ce['channel'],_0x4958ce['version'],_0x4958ce['buffers'],_0x4958ce['types'],_0x4958ce['offset'],_0x4958ce['metadata'],_0x4958ce['initData'],_0x4958ce['sessionId'],_0x4958ce['lastOperationId'],_0x4958ce['sessionCreatedAt']);}static['fromJSON'](_0x3ce9ce){let _0x480c7e=null;return!0x0===_0x3ce9ce['isInitialized']?_0x480c7e=_0x3ce9ce['initData']??'':'boolean'!=typeof _0x3ce9ce['isInitialized']&&_0x3ce9ce['initData']&&(_0x480c7e=_0x3ce9ce['initData']),CollaborativeEditingConnectResponse['create']({'channel':_0x3ce9ce['channel'],'version':_0x3ce9ce['version'],'buffers':_0x3ce9ce['buffers'],'types':_0x3ce9ce['types'],'offset':_0x3ce9ce['offset'],'metadata':_0x6af632['prepareMetadataForOperations'](_0x3ce9ce['types'],_0x3ce9ce['metadata'])['map'](_0x177be4['fromJSON']),'initData':_0x480c7e,'sessionId':_0x3ce9ce['sessionId'],'lastOperationId':_0x3ce9ce['lastOperationId'],'sessionCreatedAt':_0x3ce9ce['sessionCreatedAt']?new Date(_0x3ce9ce['sessionCreatedAt']):null});}}
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 _0x2e77d7 from'./../../message.js';import _0x48a54f from'./../helpers/operationmetadatahelpers.js';import _0x5946e8 from'../descriptors/operationmetadatadescriptor.js';export default class CollaborativeEditingResponse extends _0x2e77d7{['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(_0x345a19,_0x3ce788=[],_0x6288f2=[],_0x50ff1b=[],_0x4c3a8a='',_0x48dfc6=null){super(),this['version']=_0x345a19,this['buffers']=_0x3ce788,this['types']=_0x6288f2,this['metadata']=_0x50ff1b,this['lastOperationId']=_0x4c3a8a,this['lastOperationAcceptedAt']=_0x48dfc6;}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':_0x48a54f['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](_0x5946e8['toJSON']),'lastOperationId':this['lastOperationId'],'lastOperationAcceptedAt':this['lastOperationAcceptedAt']instanceof Date?this['lastOperationAcceptedAt']['toISOString']():this['lastOperationAcceptedAt']};}static['fromJSON'](_0x33dfb5){return new CollaborativeEditingResponse(_0x33dfb5['version'],_0x33dfb5['buffers'],_0x33dfb5['types'],_0x48a54f['prepareMetadataForOperations'](_0x33dfb5['types'],_0x33dfb5['metadata'])['map'](_0x5946e8['fromJSON']),_0x33dfb5['lastOperationId'],_0x33dfb5['lastOperationAcceptedAt']?new Date(_0x33dfb5['lastOperationAcceptedAt']):null);}static['create'](_0x5bc486){return new CollaborativeEditingResponse(_0x5bc486['version'],_0x5bc486['buffers'],_0x5bc486['types'],_0x5bc486['metadata'],_0x5bc486['lastOperationId'],_0x5bc486['lastOperationAcceptedAt']?new Date(_0x5bc486['lastOperationAcceptedAt']):null);}}
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 _0x3a4695 from'./../../message.js';export default class GetDocumentDetailsResponse extends _0x3a4695{['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(_0x8c139a,_0x554ef5){super(),this['lastDocumentSession']=_0x8c139a,this['currentDocumentSession']=_0x554ef5;}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'](_0x5b3741){const _0x13779a=_0x5b3741['lastDocumentSessionId']?{'id':_0x5b3741['lastDocumentSessionId'],'lastOperationId':_0x5b3741['lastDocumentSessionOperationId']}:void 0x0,_0x5949f4=_0x5b3741['currentDocumentSessionId']?{'lastOperationId':_0x5b3741['currentDocumentSessionOperationId'],'version':_0x5b3741['currentDocumentSessionVersion'],'id':_0x5b3741['currentDocumentSessionId']}:void 0x0;return new GetDocumentDetailsResponse(_0x13779a,_0x5949f4);}}
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 _0x14ec26 from'./../messagescompressor.js';import _0x1deead from'./messages/addcommentmessage.js';import _0x16152f from'./responses/addcommentresponse.js';import _0x1efc06 from'./messages/connectmessage.js';import _0x3d4708 from'./responses/connectresponse.js';import _0x3b81fa from'./messages/removecommentmessage.js';import _0x4fa081 from'./messages/removecommentthreadmessage.js';import _0x1abe3c from'./messages/updatecommentmessage.js';import _0x1efd5d from'./messages/getcommentthreadmessage.js';import _0x584f39 from'./responses/getcommentthreadresponse.js';import _0x3ecbaf from'./messages/getdocumentthreadsmessage.js';import _0x3641d3 from'./responses/getdocumentthreadsresponse.js';import _0x466fb4,{WEB_SOCKET_GATEWAY_STATES}from'./../websocketgateway/websocketgateway.js';import _0x236156 from'./../ckeditorcloudserviceserror.js';import _0x3f9b28 from'../sessions/sessions.js';import _0x568080 from'../errors/ServiceNotConnectedError.js';import _0x376c9d from'../ckeditorcloudservicesservererror.js';import _0x4ad4e9 from'./responses/comment-threads/addcommentthreadresponse.js';import _0x37637a from'./messages/comment-threads/addcommentthreadmessage.js';import _0x199bc1 from'./messages/comment-threads/resolvecommentthreadmessage.js';import _0xcbc3e7 from'./messages/comment-threads/reopencommentthreadmessage.js';import _0x3b2ec7 from'./messages/comment-threads/updatecommentthreadmessage.js';import _0x302c11 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(_0x1a9659){super(),this['_documentId']=_0x1a9659;}get['isConnected'](){return this['_isConnected'];}async['connect'](_0x42f99b){if(this['_isConnected'])return;if(_0x42f99b['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new _0x236156('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x42f99b);const _0x1180f7=new _0x1efc06(this['_documentId']);this['_wsGateway']=_0x42f99b,this['stopListening'](_0x42f99b,'change:state');const _0x5e5acf=await _0x42f99b['_sendRequest'](0x9,_0x1efc06['TYPE'],_0x14ec26['encode'](_0x1180f7)),{channel:_0x1c9cda,threads:_0x1f418f}=_0x14ec26['decode'](_0x5e5acf,_0x3d4708);return this['listenTo'](_0x42f99b,'change:state',(_0xee9fd2,_0x17d9d4,_0x4f096b)=>this['_onWsGatewayStateChange'](_0x4f096b),{'priority':_0x466fb4['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0x42f99b,_0x1c9cda),this['_isConnected']=!0x0,this['fire']('connected'),_0x1f418f;}['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'](_0x2701af,_0x1faa44,_0x576119,_0x4e710c){const _0x40e08c=new _0x1deead(this['_documentId'],_0x2701af,_0x576119,_0x1faa44,void 0x0,void 0x0,_0x4e710c),_0x49cce3=await this['_sendRequest'](_0x1deead['TYPE'],_0x40e08c);return _0x14ec26['decode'](_0x49cce3,_0x16152f);}async['updateComment'](_0x2ab1e5,_0x295384,_0x267c24,_0x46b1f6){const _0x3612f3=void 0x0!==_0x46b1f6,_0x378623=new _0x1abe3c(this['_documentId'],_0x2ab1e5,_0x295384,_0x267c24,_0x46b1f6,_0x3612f3);await this['_sendRequest'](_0x1abe3c['TYPE'],_0x378623);}async['removeComment'](_0x59747e,_0x27835c){const _0x4bbea4=new _0x3b81fa(this['_documentId'],_0x59747e,_0x27835c);await this['_sendRequest'](_0x3b81fa['TYPE'],_0x4bbea4);}async['removeCommentThread'](_0x40936e){const _0x515e38=new _0x4fa081(this['_documentId'],_0x40936e);await this['_sendRequest'](_0x4fa081['TYPE'],_0x515e38);}async['addCommentThread'](_0x297888){const _0xbbb425=new _0x37637a(this['_documentId'],_0x297888['commentThreadId'],_0x297888['comments']?.['map'](_0x5f2542=>({..._0x5f2542,'documentId':this['_documentId'],'commentThreadId':_0x297888['commentThreadId']})),_0x297888['context'],_0x297888['resolvedBy'],_0x297888['createdAt'],_0x297888['resolvedAt'],_0x297888['deletedAt'],_0x297888['attributes']),_0x5e7704=await this['_sendRequest'](_0x37637a['TYPE'],_0xbbb425);return _0x14ec26['decode'](_0x5e7704,_0x4ad4e9);}async['resolveCommentThread'](_0x24cbbd){const _0x723db3=new _0x199bc1(_0x24cbbd,this['_documentId']),_0x100096=await this['_sendRequest'](_0x199bc1['TYPE'],_0x723db3);return _0x14ec26['decode'](_0x100096,_0x302c11);}async['reopenCommentThread'](_0x3fe982){const _0x1020ed=new _0xcbc3e7(_0x3fe982,this['_documentId']);await this['_sendRequest'](_0xcbc3e7['TYPE'],_0x1020ed);}async['updateCommentThread'](_0x455a19){const _0x4461bf=new _0x3b2ec7(_0x455a19['commentThreadId'],this['_documentId'],_0x455a19['context'],_0x455a19['attributes'],_0x455a19['unlinkedAt']);await this['_sendRequest'](_0x3b2ec7['TYPE'],_0x4461bf);}async['getCommentThread'](_0x3c20aa,_0x253fcc=0x1){const _0xa2d527=new _0x1efd5d(_0x3c20aa,this['_documentId']);try{const _0x482075=await this['_sendRequest'](_0x1efd5d['TYPE'],_0xa2d527),_0x39690d=_0x14ec26['decode'](_0x482075,_0x584f39);return{'commentThreadId':_0x39690d['commentThreadId'],'comments':_0x39690d['comments'],'attributes':_0x39690d['attributes'],'context':_0x39690d['context'],'resolvedAt':_0x39690d['resolvedAt'],'resolvedBy':_0x39690d['resolvedBy'],'deletedAt':_0x39690d['deletedAt'],'unlinkedAt':_0x39690d['unlinkedAt']};}catch(_0x2171ef){if('CKEditorCloudServicesServerError'===_0x2171ef['name']&&'404'===_0x2171ef['code']&&_0x253fcc<0x5)return await(_0x438226=0x64*_0x253fcc,new Promise(_0x194235=>{setTimeout(_0x194235,_0x438226);})),this['getCommentThread'](_0x3c20aa,_0x253fcc+0x1);if('CKEditorCloudServicesServerError'===_0x2171ef['name'])throw _0x2171ef;throw _0x376c9d['fromPublicError'](_0x2171ef);}var _0x438226;}async['getDocumentThreads'](){const _0x49c090=new _0x3ecbaf(this['_documentId']),_0x182f67=await this['_sendRequest'](_0x3ecbaf['TYPE'],_0x49c090),{threads:_0x5d678a}=_0x14ec26['decode'](_0x182f67,_0x3641d3);return{'threads':_0x5d678a};}async['getConnectedSessions'](){if(!this['_isConnected'])throw new _0x568080('Comments',this);return this['_connectedSessions']||(this['_connectedSessions']=await _0x3f9b28['getConnectedSessions'](this['_wsGateway'],this['_documentId'],0x9)),this['_connectedSessions'];}['_connectToChannel'](_0x38e644,_0x1ef4fb){this['_channel']=_0x38e644['_getChannel'](CommentsService['_SERVICE'],_0x1ef4fb),this['_channel']&&(this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x1deead['TYPE']),(_0x36d366,_0x2ff2e5)=>{const _0x2a2dc0=_0x14ec26['decode'](_0x2ff2e5,_0x1deead);this['fire']('commentAdded',_0x2a2dc0);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x3b81fa['TYPE']),(_0x1d7843,_0x3c3786)=>{const _0xbd5a2f=_0x14ec26['decode'](_0x3c3786,_0x3b81fa);this['fire']('commentRemoved',_0xbd5a2f);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x1abe3c['TYPE']),(_0x1ed390,_0x422901)=>{const _0x5749e9=_0x14ec26['decode'](_0x422901,_0x1abe3c);this['fire']('commentUpdated',_0x5749e9);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x4fa081['TYPE']),(_0x161822,_0x1ea1e1)=>{const _0x437d8e=_0x14ec26['decode'](_0x1ea1e1,_0x4fa081);this['fire']('commentThreadRemoved',_0x437d8e);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x37637a['TYPE']),(_0x3b8374,_0x10454f)=>{const _0x1cc989=_0x14ec26['decode'](_0x10454f,_0x37637a);this['fire']('commentThreadAdded',_0x1cc989);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x3b2ec7['TYPE']),(_0x1f35b9,_0x3ba618)=>{const _0x541446=_0x14ec26['decode'](_0x3ba618,_0x3b2ec7);this['fire']('commentThreadUpdated',_0x541446);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x199bc1['TYPE']),(_0x513fc3,_0x837e11)=>{const _0x59c87f=_0x14ec26['decode'](_0x837e11,_0x199bc1);this['fire']('commentThreadResolved',_0x59c87f);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0xcbc3e7['TYPE']),(_0x550584,_0x575849)=>{const _0x43ae02=_0x14ec26['decode'](_0x575849,_0xcbc3e7);this['fire']('commentThreadReopened',_0x43ae02);}));}['_onWsGatewayStateChange'](_0x1d9a16){_0x1d9a16===WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['disconnect']();}['_sendRequest'](_0x4dc214,_0x35a309){if(!this['_wsGateway']||!this['_isConnected'])throw new _0x568080('Comments',this);return this['_wsGateway']['_sendRequest'](0x9,_0x4dc214,_0x14ec26['encode'](_0x35a309));}}export default CommentsService;
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 _0x24a9b1 from'./../../descriptor.js';export default class CommentDescriptor extends _0x24a9b1{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'](_0x43183c){return{..._0x43183c,'createdAt':_0x43183c['createdAt']?.['toISOString'](),'attributes':_0x43183c['attributes']?JSON['stringify'](_0x43183c['attributes']):null};}static['fromJSON'](_0x505546){return{..._0x505546,'createdAt':new Date(_0x505546['createdAt']),'attributes':_0x505546['attributes']?JSON['parse'](_0x505546['attributes']):null};}}
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 _0x145b53 from'./../../descriptor.js';import _0x5230ac from'./commentdescriptor.js';export default class CommentsThreadDescriptor extends _0x145b53{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'](_0x461f09){return{..._0x461f09,'createdAt':_0x461f09['createdAt']?.['toISOString'](),'deletedAt':_0x461f09['deletedAt']?.['toISOString'](),'resolvedAt':_0x461f09['resolvedAt']?.['toISOString'](),'attributes':_0x461f09['attributes']?JSON['stringify'](_0x461f09['attributes']):null,'context':_0x461f09['context']?JSON['stringify'](_0x461f09['context']):_0x461f09['context'],'comments':_0x461f09['comments']?.['map'](_0x5230ac['toJSON']),'unlinkedAt':_0x461f09['unlinkedAt']?.['toISOString']()};}static['fromJSON'](_0xef84b1){return{..._0xef84b1,'createdAt':_0xef84b1['createdAt']?new Date(_0xef84b1['createdAt']):void 0x0,'deletedAt':_0xef84b1['deletedAt']?new Date(_0xef84b1['deletedAt']):void 0x0,'resolvedAt':_0xef84b1['resolvedAt']?new Date(_0xef84b1['resolvedAt']):void 0x0,'attributes':_0xef84b1['attributes']?JSON['parse'](_0xef84b1['attributes']):null,'context':_0xef84b1['context']?JSON['parse'](_0xef84b1['context']):void 0x0,'comments':_0xef84b1['comments']?.['map'](_0x5230ac['fromJSON']),'unlinkedAt':_0xef84b1['unlinkedAt']?new Date(_0xef84b1['unlinkedAt']):void 0x0};}}
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 _0x14f1e0 from'../../descriptor.js';export default class CommentThreadAddedCommentDescriptor extends _0x14f1e0{static ['DESCRIPTOR_NAME']='CommentThreadAddedCommentDescriptor';static ['DESCRIPTOR']={'fields':{'commentId':{'id':0x1,'type':'string'},'createdAt':{'id':0x2,'type':'string'}}};static['toJSON'](_0xb586dc){return{'commentId':_0xb586dc['commentId'],'createdAt':_0xb586dc['createdAt']?.['toISOString']()};}static['fromJSON'](_0x56baab){return{'commentId':_0x56baab['commentId'],'createdAt':new Date(_0x56baab['createdAt'])};}}
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 _0xf727a2 from'./../../message.js';import _0x4a3fc2 from'../descriptors/commentsthreaddescriptor.js';export default class AddCommentMessage extends _0xf727a2{['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(_0x4901cf,_0x28375f,_0x4c46ea,_0x5b389e='',_0x57ae76,_0x1ccc1a='',_0x4b5136=null,_0x188c53){super(),this['documentId']=_0x4901cf,this['commentThreadId']=_0x28375f,this['content']=_0x4c46ea,this['commentId']=_0x5b389e,this['userId']=_0x1ccc1a,this['attributes']=_0x4b5136,this['commentThread']=_0x188c53,this['createdAt']=_0x57ae76?new Date(_0x57ae76):'';}['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']?_0x4a3fc2['toJSON'](this['commentThread']):void 0x0};}static['fromJSON'](_0x147f0f){return new AddCommentMessage(_0x147f0f['documentId'],_0x147f0f['commentThreadId'],_0x147f0f['content'],_0x147f0f['commentId']?_0x147f0f['commentId']:void 0x0,_0x147f0f['createdAt']?new Date(_0x147f0f['createdAt']):void 0x0,_0x147f0f['userId']?_0x147f0f['userId']:void 0x0,_0x147f0f['attributes']?JSON['parse'](_0x147f0f['attributes']):{},_0x147f0f['commentThread']?_0x4a3fc2['fromJSON'](_0x147f0f['commentThread']):void 0x0);}}
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 _0x8da877 from'../../../message.js';import _0x53464b from'../../descriptors/commentdescriptor.js';export default class AddCommentThreadMessage extends _0x8da877{['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(_0x32bc4c,_0x55a0d9,_0x391ab5=[],_0x594556,_0x253fb4=null,_0x299337=null,_0x2ec5d9=null,_0x3111fb=null,_0x19cc07=null){super(),this['documentId']=_0x32bc4c,this['commentThreadId']=_0x55a0d9,this['comments']=_0x391ab5,this['context']=_0x594556,this['resolvedBy']=_0x253fb4,this['attributes']=_0x19cc07,this['createdAt']=_0x299337?new Date(_0x299337):'',this['resolvedAt']=_0x2ec5d9?new Date(_0x2ec5d9):'',this['deletedAt']=_0x3111fb?new Date(_0x3111fb):'';}['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'](_0x88be8b=>_0x53464b['toJSON'](_0x88be8b))};}static['fromJSON'](_0x4424c0){return new AddCommentThreadMessage(_0x4424c0['documentId'],_0x4424c0['commentThreadId'],_0x4424c0['comments']?.['map'](_0x18e279=>_0x53464b['fromJSON']({..._0x18e279,'documentId':_0x4424c0['documentId'],'commentThreadId':_0x4424c0['commentThreadId']})),_0x4424c0['context']?JSON['parse'](_0x4424c0['context']):_0x4424c0['context'],_0x4424c0['resolvedBy'],_0x4424c0['createdAt']?new Date(_0x4424c0['createdAt']):void 0x0,_0x4424c0['resolvedAt']?new Date(_0x4424c0['resolvedAt']):void 0x0,_0x4424c0['deletedAt']?new Date(_0x4424c0['deletedAt']):void 0x0,_0x4424c0['attributes']?JSON['parse'](_0x4424c0['attributes']):_0x4424c0['attributes']);}}
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 _0x13bce5 from'../../../message.js';export default class ReopenCommentThreadMessage extends _0x13bce5{['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(_0x332f6d,_0x41ca25){super(),this['commentThreadId']=_0x332f6d,this['documentId']=_0x41ca25;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId']};}static['fromJSON'](_0x17a36c){return new ReopenCommentThreadMessage(_0x17a36c['commentThreadId'],_0x17a36c['documentId']);}}
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 _0x5563ba from'../../../message.js';export default class ResolveCommentThreadMessage extends _0x5563ba{['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(_0x59f729,_0x2ec82b,_0x106fa2,_0x79455b){super(),this['commentThreadId']=_0x59f729,this['documentId']=_0x2ec82b,this['resolvedBy']=_0x106fa2,this['resolvedAt']=_0x79455b?new Date(_0x79455b):void 0x0;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']?.['toISOString']()};}static['fromJSON'](_0x539608){return new ResolveCommentThreadMessage(_0x539608['commentThreadId'],_0x539608['documentId'],_0x539608['resolvedBy'],_0x539608['resolvedAt']);}}
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 _0x2e3c74 from'../../../message.js';export default class UpdateCommentThreadMessage extends _0x2e3c74{['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(_0x4cba31,_0x2b4607,_0x588e89,_0x3fff17=null,_0x31615a=null){super(),this['commentThreadId']=_0x4cba31,this['documentId']=_0x2b4607,this['context']=_0x588e89,this['attributes']=_0x3fff17,this['unlinkedAt']=_0x31615a?new Date(_0x31615a):'';}['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'](_0xdbbbb8){return new UpdateCommentThreadMessage(_0xdbbbb8['commentThreadId'],_0xdbbbb8['documentId'],_0xdbbbb8['context']?JSON['parse'](_0xdbbbb8['context']):_0xdbbbb8['context'],_0xdbbbb8['attributes']?JSON['parse'](_0xdbbbb8['attributes']):null,_0xdbbbb8['unlinkedAt']?new Date(_0xdbbbb8['unlinkedAt']):null);}}
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 _0x3153d8 from'./../../message.js';export default class ConnectMessage extends _0x3153d8{['documentId'];static ['TYPE']='92';static ['READABLE_TYPE_NAME']='connectToComment';static ['DESCRIPTOR_NAME']='CommentsV2ConnectMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(_0x2d0ade){super(),this['documentId']=_0x2d0ade;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x34b660){return new ConnectMessage(_0x34b660['documentId']);}}
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 _0x38a01e from'./../../message.js';export default class GetCommentThreadMessage extends _0x38a01e{['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(_0x5ae73e,_0x1109b1){super(),this['commentThreadId']=_0x5ae73e,this['documentId']=_0x1109b1;}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'documentId':this['documentId']};}static['fromJSON'](_0x37b00a){return new GetCommentThreadMessage(_0x37b00a['commentThreadId'],_0x37b00a['documentId']);}}
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 _0x383435 from'./../../message.js';export default class GetDocumentThreadsMessage extends _0x383435{['documentId'];static ['TYPE']='94';static ['READABLE_TYPE_NAME']='getDocumentThreads';static ['DESCRIPTOR_NAME']='CommentsV2GetDocumentThreadsMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(_0x49c7c7){super(),this['documentId']=_0x49c7c7;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x2a1b96){return new GetDocumentThreadsMessage(_0x2a1b96['documentId']);}}
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 _0x68a2a4 from'./../../message.js';export default class RemoveCommentMessage extends _0x68a2a4{['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(_0x1c2175,_0x1fc90f,_0x474ba1){super(),this['documentId']=_0x1c2175,this['commentThreadId']=_0x1fc90f,this['commentId']=_0x474ba1;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'commentId':this['commentId']};}static['fromJSON'](_0x181cba){return new RemoveCommentMessage(_0x181cba['documentId'],_0x181cba['commentThreadId'],_0x181cba['commentId']);}}
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 _0x3f9c42 from'./../../message.js';export default class RemoveCommentThreadMessage extends _0x3f9c42{['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(_0x46449e,_0x13de4c){super(),this['documentId']=_0x46449e,this['commentThreadId']=_0x13de4c;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId']};}static['fromJSON'](_0x219f29){return new RemoveCommentThreadMessage(_0x219f29['documentId'],_0x219f29['commentThreadId']);}}
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 _0xd677fb from'./../../message.js';import _0x74b95a from'../descriptors/commentsthreaddescriptor.js';export default class UpdateCommentMessage extends _0xd677fb{['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(_0x1d6c85,_0x317d04,_0x192fa8,_0x463d0a,_0x5dbf40=null,_0x2ae158=!0x1,_0x5886fc){super(),this['documentId']=_0x1d6c85,this['commentThreadId']=_0x317d04,this['commentId']=_0x192fa8,this['content']=_0x463d0a,this['attributes']=_0x5dbf40,this['isAttributesUpdated']=_0x2ae158,this['commentThread']=_0x5886fc;}['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']?_0x74b95a['toJSON'](this['commentThread']):void 0x0};}static['fromJSON'](_0x3602ec){return new UpdateCommentMessage(_0x3602ec['documentId'],_0x3602ec['commentThreadId'],_0x3602ec['commentId'],_0x3602ec['content'],_0x3602ec['attributes']?JSON['parse'](_0x3602ec['attributes']):null,_0x3602ec['isAttributesUpdated'],_0x3602ec['commentThread']?_0x74b95a['fromJSON'](_0x3602ec['commentThread']):void 0x0);}}
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 _0x5db543 from'./../../message.js';export default class AddCommentResponse extends _0x5db543{['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(_0x4b489f,_0x365d73,_0xce0ddb){super(),this['commentThreadId']=_0x4b489f,this['commentId']=_0x365d73,this['createdAt']=new Date(_0xce0ddb);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'commentId':this['commentId'],'createdAt':this['createdAt']['toISOString']()};}static['fromJSON'](_0x3add3b){return new AddCommentResponse(_0x3add3b['commentThreadId'],_0x3add3b['commentId'],_0x3add3b['createdAt']);}}
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 _0x64c5c3 from'./../../../message.js';import _0x39b471 from'../../descriptors/commentthreadaddedcomment.js';export default class AddCommentThreadResponse extends _0x64c5c3{['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(_0x251d3a,_0x51c691,_0x49cc6f=[]){super(),this['commentThreadId']=_0x251d3a,this['comments']=_0x49cc6f,this['createdAt']=new Date(_0x51c691);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'createdAt':this['createdAt']['toISOString'](),'comments':this['comments']['map'](_0x262ac3=>_0x39b471['toJSON'](_0x262ac3))};}static['fromJSON'](_0x3d0b20){return new AddCommentThreadResponse(_0x3d0b20['commentThreadId'],_0x3d0b20['createdAt'],_0x3d0b20['comments']['map'](_0x5c663b=>_0x39b471['fromJSON'](_0x5c663b)));}}
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 _0x500610 from'./../../../message.js';export default class ResolveCommentThreadResponse extends _0x500610{['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(_0x342d0e,_0x1753bb,_0x53ebf0,_0x20d7c1){super(),this['commentThreadId']=_0x342d0e,this['documentId']=_0x1753bb,this['resolvedBy']=_0x53ebf0,this['resolvedAt']=new Date(_0x20d7c1);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'documentId':this['documentId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']['toISOString']()};}static['fromJSON'](_0x4f8640){return new ResolveCommentThreadResponse(_0x4f8640['commentThreadId'],_0x4f8640['documentId'],_0x4f8640['resolvedBy'],_0x4f8640['resolvedAt']);}}
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 _0x5906a5 from'./../../message.js';import _0x4f1139 from'../descriptors/commentsthreaddescriptor.js';export default class ConnectResponse extends _0x5906a5{['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(_0x5df3ab,_0x5cada1,_0xe5f4d9){super(),this['channel']=_0x5df3ab,this['_threads']=_0x5cada1,this['_threadsV2']=_0xe5f4d9,this['threads']=_0xe5f4d9?.['length']?_0xe5f4d9:_0x5cada1;}['toJSON'](){return{'channel':this['channel'],'threads':this['_threads']?.['map'](_0x227309=>JSON['stringify'](_0x227309)),'threadsV2':this['_threadsV2']?.['map'](_0x4f1139['toJSON'])};}static['fromJSON'](_0x2d5608){return new ConnectResponse(_0x2d5608['channel'],_0x2d5608['threads']?.['map'](_0x454fdc=>JSON['parse'](_0x454fdc)),_0x2d5608['threadsV2']?.['map'](_0x4f1139['fromJSON']));}}
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']));}}