@ckeditor/ckeditor-cloud-services-collaboration 52.7.0 → 53.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/dist/index.js +19 -19
  2. package/dist/index.js.map +1 -1
  3. package/package.json +2 -2
  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": "53.0.0",
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",
@@ -27,7 +27,7 @@
27
27
  "author": "CKSource Holding sp. z o.o. (http://cksource.com/)",
28
28
  "homepage": "https://ckeditor.com/ckeditor-cloud-services/",
29
29
  "dependencies": {
30
- "protobufjs": "7.4.0",
30
+ "protobufjs": "7.5.0",
31
31
  "socket.io-client": "4.7.0",
32
32
  "socket.io-parser": "~4.2.3",
33
33
  "url-parse": "1.5.10",
@@ -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(_0x224dd1,_0x2b0c9c,_0x19b391=null,_0x5e4ff4={}){super('cloud-services-internal-error:\x20'+_0x224dd1),this['context']=_0x2b0c9c,this['code']=_0x19b391,this['data']=_0x5e4ff4,this['name']='CKEditorError';}static['fromPublicError'](_0x147ba9){return new CKEditorCloudServicesError(function(_0x4450de){let _0x2d839c='cloud-services-error:\x20'+_0x4450de['message'];return _0x4450de['data']&&(_0x2d839c+='\x0aError\x20data:\x20'+JSON['stringify'](_0x4450de['data'])),_0x4450de['explanation']&&(_0x2d839c+='\x0aExplanation:\x20'+_0x4450de['explanation']),_0x4450de['action']&&(_0x2d839c+='\x0aAction:\x20'+_0x4450de['action']),_0x4450de['traceId']&&(_0x2d839c+='\x0aTraceId:\x20'+_0x4450de['traceId']),_0x4450de['code']&&(_0x2d839c+='\x0aCode:\x20'+_0x4450de['code']),_0x2d839c;}(_0x147ba9),_0x147ba9);}}
@@ -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(_0x1ff876,_0xd32753){super(),this['name']='CKEditorCloudServicesServerError',this['stack']=void 0x0,this['message']=_0x1ff876,this['code']=_0xd32753['code'],this['traceId']=_0xd32753['traceId'],this['data']=_0xd32753['data'];}static['fromPublicError'](_0x40ea10){return new CKEditorCloudServicesServerError(function(_0xc66bab){let _0x2b0391='cloud-services-server-error:\x20'+_0xc66bab['message'];return _0xc66bab['explanation']&&(_0x2b0391+='\x0aExplanation:\x20'+_0xc66bab['explanation']),_0xc66bab['action']&&(_0x2b0391+='\x0aAction:\x20'+_0xc66bab['action']),_0xc66bab['traceId']&&(_0x2b0391+='\x0aTraceId:\x20'+_0xc66bab['traceId']),_0xc66bab['code']&&(_0x2b0391+='\x0aCode:\x20'+_0xc66bab['code']),_0x2b0391;}(_0x40ea10),_0x40ea10);}}
@@ -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 _0x31becd}from'uuid';import{EmitterMixin}from'ckeditor5/src/utils.js';import _0x150a4a from'./../messagescompressor.js';import _0x47b296 from'./../sessions/sessions.js';import _0x4c60cd from'./messages/collaborativeeditingconnectmessage.js';import _0xf62b75 from'./messages/collaborativeeditingupdatemessage.js';import _0x4b40ea from'./messages/collaborativeeditingreconnectmessage.js';import _0x599836 from'./responses/collaborativeeditingresponse.js';import _0x1ba333 from'./responses/collaborativeeditingconnectresponse.js';import _0x1a0822 from'./../websocketgateway/websocketgateway.js';import _0x2f15e5 from'../ckeditorcloudserviceserror.js';import _0xda9c67 from'../errors/ServiceNotConnectedError.js';import _0x568761 from'./responses/getdocumentdetailsresponse.js';import _0x3d7df3 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(_0x2784e0,_0x564719){if(super(),!_0x2784e0)throw new TypeError('Param\x20\x22bundleVersion\x22\x20must\x20be\x20provided.');this['_id']=_0x564719??_0x31becd(),this['_isConnected']=!0x1,this['_bundleVersion']=_0x2784e0;}['getId'](){return this['_id'];}['isConnected'](){return this['_isConnected'];}['connect'](_0x17123b,_0x19ce9a={'buffers':[],'types':[]},_0x50fe79){const _0xed8e65=new _0x4c60cd(this['getId'](),_0x19ce9a['buffers'],_0x19ce9a['types'],this['_bundleVersion'],_0x50fe79);return this['_connect'](_0x17123b,_0xed8e65);}['reconnect'](_0x4093ab,_0xcec810){if(this['isConnected']())throw new _0x2f15e5('Cannot\x20reconnect\x20to\x20already\x20connected\x20service.',_0x4093ab);return this['_connect'](_0x4093ab,new _0x4b40ea(this['getId'](),_0xcec810,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 _0x459ed9=new _0x3d7df3(this['getId']());if(!this['_wsGateway'])throw new _0xda9c67('Collaborative\x20Editing',this);const _0x1cb4ff=await this['_wsGateway']['_sendRequest'](0x1,_0x3d7df3['TYPE'],_0x150a4a['encode'](_0x459ed9));return _0x150a4a['decode'](_0x1cb4ff,_0x568761);}async['sendOperations'](_0x253c69,_0x20842,_0x567c6c){if(!_0x253c69?.['types']?.['length'])throw new _0x2f15e5('Cannot\x20send\x20empty\x20update.',this['_wsGateway']);const _0x1eecc8='number'==typeof _0x20842?_0x20842:parseInt(_0x20842);if(!Number['isInteger'](_0x1eecc8)||_0x1eecc8<0x0)throw new _0x2f15e5('Base\x20version\x20not\x20provided.',this['_wsGateway']);const _0x464980=new _0xf62b75(this['getId'](),_0x253c69['buffers'],_0x253c69['types'],_0x1eecc8,[],_0x567c6c);if(!this['_wsGateway']||!this['_isConnected'])throw new _0xda9c67('Collaborative\x20Editing',this);const _0x18c307=await this['_wsGateway']['_sendRequest'](0x1,_0xf62b75['TYPE'],_0x150a4a['encode'](_0x464980));return _0x150a4a['decode'](_0x18c307,_0x599836);}async['getConnectedSessions'](){if(!this['_isConnected'])throw new _0xda9c67('Collaborative\x20Editing',this);return this['_connectedSessions']||(this['_connectedSessions']=await _0x47b296['getConnectedSessions'](this['_wsGateway'],this['_id'],0x1)),this['_connectedSessions'];}static['getConnectedSessions'](_0x389f98,_0x51bf3e){return _0x47b296['getConnectedSessions'](_0x389f98,_0x51bf3e,0x1);}async['_connect'](_0x4efed6,_0x8224e){if(this['isConnected']())return;if(_0x4efed6['state']!==_0x1a0822['STATE_CONNECTED'])throw new _0x2f15e5('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x4efed6);this['_wsGateway']=_0x4efed6,this['stopListening'](_0x4efed6,'change:state');const _0x4ab81e=await _0x4efed6['_sendRequest'](0x1,_0x8224e['constructor']['TYPE'],_0x150a4a['encode'](_0x8224e)),_0x1d2fc3=_0x150a4a['decode'](_0x4ab81e,_0x1ba333);return this['listenTo'](_0x4efed6,'change:state',(_0x2a6c0a,_0x4e3a08,_0x1bfd60)=>this['_onWsGatewayStateChange'](_0x1bfd60),{'priority':_0x1a0822['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0x4efed6,_0x1d2fc3['channel']),this['_isConnected']=!0x0,this['fire']('connected'),_0x1d2fc3;}['_connectToChannel'](_0x57e588,_0x57cebb){this['_channel']=_0x57e588['_getChannel'](0x1,_0x57cebb),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0xf62b75['TYPE']),(_0x27c1b5,_0xb73c66)=>{const _0x4b5100=_0x150a4a['decode'](_0xb73c66,_0xf62b75);this['fire']('operationsReceived',_0x4b5100['baseVersion'],_0x4b5100['data'],_0x4b5100['metadata']);});}['_onWsGatewayStateChange'](_0x1154a6){_0x1154a6===_0x1a0822['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 _0x459765 from'./../../descriptor.js';export default class OperationMetadataDescriptor extends _0x459765{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:_0x511f8a,..._0x104a75}){const _0x5d4b35={..._0x104a75};return _0x511f8a?.['toISOString']&&(_0x5d4b35['createdAt']=_0x511f8a['toISOString']()),_0x5d4b35;}static['fromJSON']({createdAt:_0x3c07fc,..._0x253d9a}){const _0x5e333d={..._0x253d9a};return _0x3c07fc&&(_0x5e333d['createdAt']=new Date(_0x3c07fc)),_0x5e333d;}}
@@ -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'](_0x2707c0,_0x310c4e){if(!_0x2707c0?.['length']||!_0x310c4e?.['length'])return[];const _0x1c2d60=[];let _0x400e19=0x0;for(const _0x593fd7 of _0x2707c0)if(0x0!==_0x593fd7){if(!_0x310c4e[_0x400e19])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');_0x1c2d60['push'](_0x310c4e[_0x400e19]),_0x400e19++;}else _0x1c2d60['push'](_0x1c2d60[_0x1c2d60['length']-0x1]);return _0x1c2d60;}static['removeUnnecessaryMetadata'](_0x91a9e4,_0x1914a6){if(!_0x91a9e4?.['length']||!_0x1914a6?.['length'])return[];const _0x4f7109=[];for(let _0x5650bc=0x0;_0x5650bc<_0x91a9e4['length'];_0x5650bc++)if(0x0!==_0x91a9e4[_0x5650bc]){if(!_0x1914a6[_0x5650bc])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');_0x4f7109['push'](_0x1914a6[_0x5650bc]);}return _0x4f7109;}}
@@ -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 _0x215b8f from'./../../message.js';export default class CollaborativeEditingConnectMessage extends _0x215b8f{['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(_0xee072b,_0x392344,_0x2d4e8c,_0x5d9a6b,_0x20b11c=''){super(),this['id']=_0xee072b,this['buffers']=_0x392344,this['types']=_0x2d4e8c,this['bundleVersion']=_0x5d9a6b,this['lastOperationId']=_0x20b11c;}['toJSON'](){return{'id':this['id'],'buffers':this['buffers'],'types':this['types'],'bundleVersion':this['bundleVersion'],'lastOperationId':this['lastOperationId']};}static['fromJSON'](_0xef211){return new CollaborativeEditingConnectMessage(_0xef211['id'],_0xef211['buffers'],_0xef211['types'],_0xef211['bundleVersion'],_0xef211['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 _0x493f86 from'./../../message.js';export default class CollaborativeEditingReconnectMessage extends _0x493f86{['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(_0x113a02,_0x36c0ff,_0x5d8c70){super(),this['id']=_0x113a02,this['lastKnowVersion']=_0x36c0ff,this['bundleVersion']=_0x5d8c70;}['toJSON'](){return{'id':this['id'],'bundleVersion':this['bundleVersion'],'lastKnowVersion':this['lastKnowVersion']};}static['fromJSON'](_0x586a8a){return new CollaborativeEditingReconnectMessage(_0x586a8a['id'],_0x586a8a['lastKnowVersion'],_0x586a8a['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 _0x1fc1e8 from'./../../message.js';import _0x55f14f from'./../helpers/operationmetadatahelpers.js';import _0x4af127 from'../descriptors/operationmetadatadescriptor.js';export default class CollaborativeEditingUpdateMessage extends _0x1fc1e8{['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(_0x1c40b7,_0x235f6e,_0x2f976b,_0x3445ce,_0x1cfd83=[],_0x2d8904=''){super(),this['id']=_0x1c40b7,this['buffers']=_0x235f6e,this['types']=_0x2f976b,this['baseVersion']=_0x3445ce,this['metadata']=_0x1cfd83,this['lastOperationId']=_0x2d8904;}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':_0x55f14f['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](_0x4af127['toJSON']),'lastOperationId':this['lastOperationId']};}static['fromJSON'](_0x24f516){return new CollaborativeEditingUpdateMessage(_0x24f516['id'],_0x24f516['buffers'],_0x24f516['types'],_0x24f516['baseVersion'],_0x55f14f['prepareMetadataForOperations'](_0x24f516['types'],_0x24f516['metadata'])['map'](_0x4af127['fromJSON']),_0x24f516['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 _0x117c93 from'../../message.js';export default class GetDocumentDetailsMessage extends _0x117c93{['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(_0x253740){super(),this['documentId']=_0x253740;}get['data'](){return{'documentId':this['documentId']};}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x25cdff){return new GetDocumentDetailsMessage(_0x25cdff['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 _0x353f81 from'./../../message.js';import _0x4e620c from'./../helpers/operationmetadatahelpers.js';import _0x139700 from'../descriptors/operationmetadatadescriptor.js';export default class CollaborativeEditingConnectResponse extends _0x353f81{['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':_0x139700['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(_0x37cee7,_0x77c00c,_0x29a9b9=[],_0x6e1e0=[],_0x291006=0x0,_0x13abcf=[],_0x9c05f3=null,_0x4b64b6='',_0x5b7f24='',_0x108de6=null){super(),this['channel']=_0x37cee7,this['version']=_0x77c00c,this['buffers']=_0x29a9b9,this['types']=_0x6e1e0,this['offset']=_0x291006,this['metadata']=_0x13abcf,this['initData']=_0x9c05f3,this['sessionId']=_0x4b64b6,this['lastOperationId']=_0x5b7f24,this['sessionCreatedAt']=_0x108de6;}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':_0x4e620c['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](_0x139700['toJSON']),'initData':this['initData']??'','isInitialized':'string'==typeof this['initData'],'lastOperationId':this['lastOperationId'],'sessionCreatedAt':this['sessionCreatedAt']?this['sessionCreatedAt']['toISOString']():null};}static['create'](_0x4ef256){return new CollaborativeEditingConnectResponse(_0x4ef256['channel'],_0x4ef256['version'],_0x4ef256['buffers'],_0x4ef256['types'],_0x4ef256['offset'],_0x4ef256['metadata'],_0x4ef256['initData'],_0x4ef256['sessionId'],_0x4ef256['lastOperationId'],_0x4ef256['sessionCreatedAt']);}static['fromJSON'](_0x360e45){let _0x78669b=null;return!0x0===_0x360e45['isInitialized']?_0x78669b=_0x360e45['initData']??'':'boolean'!=typeof _0x360e45['isInitialized']&&_0x360e45['initData']&&(_0x78669b=_0x360e45['initData']),CollaborativeEditingConnectResponse['create']({'channel':_0x360e45['channel'],'version':_0x360e45['version'],'buffers':_0x360e45['buffers'],'types':_0x360e45['types'],'offset':_0x360e45['offset'],'metadata':_0x4e620c['prepareMetadataForOperations'](_0x360e45['types'],_0x360e45['metadata'])['map'](_0x139700['fromJSON']),'initData':_0x78669b,'sessionId':_0x360e45['sessionId'],'lastOperationId':_0x360e45['lastOperationId'],'sessionCreatedAt':_0x360e45['sessionCreatedAt']?new Date(_0x360e45['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 _0xd699ca from'./../../message.js';import _0x2cfce5 from'./../helpers/operationmetadatahelpers.js';import _0x2c309d from'../descriptors/operationmetadatadescriptor.js';export default class CollaborativeEditingResponse extends _0xd699ca{['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(_0x41bd63,_0x977dee=[],_0x5f3195=[],_0x53117a=[],_0x2f7505='',_0x3366ab=null){super(),this['version']=_0x41bd63,this['buffers']=_0x977dee,this['types']=_0x5f3195,this['metadata']=_0x53117a,this['lastOperationId']=_0x2f7505,this['lastOperationAcceptedAt']=_0x3366ab;}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':_0x2cfce5['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](_0x2c309d['toJSON']),'lastOperationId':this['lastOperationId'],'lastOperationAcceptedAt':this['lastOperationAcceptedAt']instanceof Date?this['lastOperationAcceptedAt']['toISOString']():this['lastOperationAcceptedAt']};}static['fromJSON'](_0x406170){return new CollaborativeEditingResponse(_0x406170['version'],_0x406170['buffers'],_0x406170['types'],_0x2cfce5['prepareMetadataForOperations'](_0x406170['types'],_0x406170['metadata'])['map'](_0x2c309d['fromJSON']),_0x406170['lastOperationId'],_0x406170['lastOperationAcceptedAt']?new Date(_0x406170['lastOperationAcceptedAt']):null);}static['create'](_0x5c27e8){return new CollaborativeEditingResponse(_0x5c27e8['version'],_0x5c27e8['buffers'],_0x5c27e8['types'],_0x5c27e8['metadata'],_0x5c27e8['lastOperationId'],_0x5c27e8['lastOperationAcceptedAt']?new Date(_0x5c27e8['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 _0x383701 from'./../../message.js';export default class GetDocumentDetailsResponse extends _0x383701{['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(_0x5b0904,_0x3043e9){super(),this['lastDocumentSession']=_0x5b0904,this['currentDocumentSession']=_0x3043e9;}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'](_0x33b440){const _0x48c687=_0x33b440['lastDocumentSessionId']?{'id':_0x33b440['lastDocumentSessionId'],'lastOperationId':_0x33b440['lastDocumentSessionOperationId']}:void 0x0,_0x116c22=_0x33b440['currentDocumentSessionId']?{'lastOperationId':_0x33b440['currentDocumentSessionOperationId'],'version':_0x33b440['currentDocumentSessionVersion'],'id':_0x33b440['currentDocumentSessionId']}:void 0x0;return new GetDocumentDetailsResponse(_0x48c687,_0x116c22);}}
@@ -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 _0x6941ac from'./../messagescompressor.js';import _0x1a046e from'./messages/addcommentmessage.js';import _0x5c2329 from'./responses/addcommentresponse.js';import _0x53e04d from'./messages/connectmessage.js';import _0x35dafe from'./responses/connectresponse.js';import _0x4a88e4 from'./messages/removecommentmessage.js';import _0x5c38b7 from'./messages/removecommentthreadmessage.js';import _0x507442 from'./messages/updatecommentmessage.js';import _0xe5394e from'./messages/getcommentthreadmessage.js';import _0x2ad195 from'./responses/getcommentthreadresponse.js';import _0x34ea44 from'./messages/getdocumentthreadsmessage.js';import _0x14c2a4 from'./responses/getdocumentthreadsresponse.js';import _0x2a21bf,{WEB_SOCKET_GATEWAY_STATES}from'./../websocketgateway/websocketgateway.js';import _0x526164 from'./../ckeditorcloudserviceserror.js';import _0x5c24f2 from'../sessions/sessions.js';import _0x4656cd from'../errors/ServiceNotConnectedError.js';import _0x4c0398 from'../ckeditorcloudservicesservererror.js';import _0x3f5a6d from'./responses/comment-threads/addcommentthreadresponse.js';import _0x104d72 from'./messages/comment-threads/addcommentthreadmessage.js';import _0x500e6c from'./messages/comment-threads/resolvecommentthreadmessage.js';import _0x362b95 from'./messages/comment-threads/reopencommentthreadmessage.js';import _0x12f964 from'./messages/comment-threads/updatecommentthreadmessage.js';import _0x23c1eb 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(_0x202f2e){super(),this['_documentId']=_0x202f2e;}get['isConnected'](){return this['_isConnected'];}async['connect'](_0x4f18b1){if(this['_isConnected'])return;if(_0x4f18b1['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new _0x526164('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x4f18b1);const _0x49410d=new _0x53e04d(this['_documentId']);this['_wsGateway']=_0x4f18b1,this['stopListening'](_0x4f18b1,'change:state');const _0x43152f=await _0x4f18b1['_sendRequest'](0x9,_0x53e04d['TYPE'],_0x6941ac['encode'](_0x49410d)),{channel:_0x2c81cf,threads:_0x4765b5}=_0x6941ac['decode'](_0x43152f,_0x35dafe);return this['listenTo'](_0x4f18b1,'change:state',(_0x2e9bdf,_0x3b0e08,_0x365047)=>this['_onWsGatewayStateChange'](_0x365047),{'priority':_0x2a21bf['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0x4f18b1,_0x2c81cf),this['_isConnected']=!0x0,this['fire']('connected'),_0x4765b5;}['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'](_0x189bc5,_0x451cd6,_0x2d1017,_0x4fddca){const _0x42de31=new _0x1a046e(this['_documentId'],_0x189bc5,_0x2d1017,_0x451cd6,void 0x0,void 0x0,_0x4fddca),_0xba212f=await this['_sendRequest'](_0x1a046e['TYPE'],_0x42de31);return _0x6941ac['decode'](_0xba212f,_0x5c2329);}async['updateComment'](_0xbda724,_0xcce638,_0x497609,_0x249da0){const _0x22c3bc=void 0x0!==_0x249da0,_0x4da251=new _0x507442(this['_documentId'],_0xbda724,_0xcce638,_0x497609,_0x249da0,_0x22c3bc);await this['_sendRequest'](_0x507442['TYPE'],_0x4da251);}async['removeComment'](_0xf369df,_0x452b71){const _0x1327e4=new _0x4a88e4(this['_documentId'],_0xf369df,_0x452b71);await this['_sendRequest'](_0x4a88e4['TYPE'],_0x1327e4);}async['removeCommentThread'](_0x3baf91){const _0x53f7ac=new _0x5c38b7(this['_documentId'],_0x3baf91);await this['_sendRequest'](_0x5c38b7['TYPE'],_0x53f7ac);}async['addCommentThread'](_0x2c9b73){const _0x3bcd81=new _0x104d72(this['_documentId'],_0x2c9b73['commentThreadId'],_0x2c9b73['comments']?.['map'](_0x3da662=>({..._0x3da662,'documentId':this['_documentId'],'commentThreadId':_0x2c9b73['commentThreadId']})),_0x2c9b73['context'],_0x2c9b73['resolvedBy'],_0x2c9b73['createdAt'],_0x2c9b73['resolvedAt'],_0x2c9b73['deletedAt'],_0x2c9b73['attributes']),_0x205259=await this['_sendRequest'](_0x104d72['TYPE'],_0x3bcd81);return _0x6941ac['decode'](_0x205259,_0x3f5a6d);}async['resolveCommentThread'](_0x1195c6){const _0x1cb187=new _0x500e6c(_0x1195c6,this['_documentId']),_0x5dd8b1=await this['_sendRequest'](_0x500e6c['TYPE'],_0x1cb187);return _0x6941ac['decode'](_0x5dd8b1,_0x23c1eb);}async['reopenCommentThread'](_0x4820bf){const _0x3afd27=new _0x362b95(_0x4820bf,this['_documentId']);await this['_sendRequest'](_0x362b95['TYPE'],_0x3afd27);}async['updateCommentThread'](_0x172f05){const _0x5c39a5=new _0x12f964(_0x172f05['commentThreadId'],this['_documentId'],_0x172f05['context'],_0x172f05['attributes'],_0x172f05['unlinkedAt']);await this['_sendRequest'](_0x12f964['TYPE'],_0x5c39a5);}async['getCommentThread'](_0x5b4b6a,_0x2bcc5d=0x1){const _0x41dc0c=new _0xe5394e(_0x5b4b6a,this['_documentId']);try{const _0x2bb468=await this['_sendRequest'](_0xe5394e['TYPE'],_0x41dc0c),_0xc96684=_0x6941ac['decode'](_0x2bb468,_0x2ad195);return{'commentThreadId':_0xc96684['commentThreadId'],'comments':_0xc96684['comments'],'attributes':_0xc96684['attributes'],'context':_0xc96684['context'],'resolvedAt':_0xc96684['resolvedAt'],'resolvedBy':_0xc96684['resolvedBy'],'deletedAt':_0xc96684['deletedAt'],'unlinkedAt':_0xc96684['unlinkedAt']};}catch(_0x30297e){if('CKEditorCloudServicesServerError'===_0x30297e['name']&&'404'===_0x30297e['code']&&_0x2bcc5d<0x5)return await(_0x3df2fb=0x64*_0x2bcc5d,new Promise(_0x25ec94=>{setTimeout(_0x25ec94,_0x3df2fb);})),this['getCommentThread'](_0x5b4b6a,_0x2bcc5d+0x1);if('CKEditorCloudServicesServerError'===_0x30297e['name'])throw _0x30297e;throw _0x4c0398['fromPublicError'](_0x30297e);}var _0x3df2fb;}async['getDocumentThreads'](){const _0x140577=new _0x34ea44(this['_documentId']),_0x42dbcc=await this['_sendRequest'](_0x34ea44['TYPE'],_0x140577),{threads:_0x115e46}=_0x6941ac['decode'](_0x42dbcc,_0x14c2a4);return{'threads':_0x115e46};}async['getConnectedSessions'](){if(!this['_isConnected'])throw new _0x4656cd('Comments',this);return this['_connectedSessions']||(this['_connectedSessions']=await _0x5c24f2['getConnectedSessions'](this['_wsGateway'],this['_documentId'],0x9)),this['_connectedSessions'];}['_connectToChannel'](_0x5ae97f,_0x132b6d){this['_channel']=_0x5ae97f['_getChannel'](CommentsService['_SERVICE'],_0x132b6d),this['_channel']&&(this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x1a046e['TYPE']),(_0x4c95d9,_0x4bd345)=>{const _0x38667d=_0x6941ac['decode'](_0x4bd345,_0x1a046e);this['fire']('commentAdded',_0x38667d);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x4a88e4['TYPE']),(_0x20118b,_0x3943e8)=>{const _0x3d2665=_0x6941ac['decode'](_0x3943e8,_0x4a88e4);this['fire']('commentRemoved',_0x3d2665);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x507442['TYPE']),(_0x1b62bf,_0x2be4a8)=>{const _0x571c99=_0x6941ac['decode'](_0x2be4a8,_0x507442);this['fire']('commentUpdated',_0x571c99);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x5c38b7['TYPE']),(_0x3a8b9b,_0x458485)=>{const _0x1b7e8e=_0x6941ac['decode'](_0x458485,_0x5c38b7);this['fire']('commentThreadRemoved',_0x1b7e8e);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x104d72['TYPE']),(_0x1a59d9,_0x1c7e01)=>{const _0x4e4d31=_0x6941ac['decode'](_0x1c7e01,_0x104d72);this['fire']('commentThreadAdded',_0x4e4d31);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x12f964['TYPE']),(_0x66f9a7,_0x41c9ef)=>{const _0x5759f5=_0x6941ac['decode'](_0x41c9ef,_0x12f964);this['fire']('commentThreadUpdated',_0x5759f5);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x500e6c['TYPE']),(_0x34b125,_0x4f750d)=>{const _0x2ce773=_0x6941ac['decode'](_0x4f750d,_0x500e6c);this['fire']('commentThreadResolved',_0x2ce773);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x362b95['TYPE']),(_0x53b42b,_0x1f84fd)=>{const _0x15d5e8=_0x6941ac['decode'](_0x1f84fd,_0x362b95);this['fire']('commentThreadReopened',_0x15d5e8);}));}['_onWsGatewayStateChange'](_0x5611f9){_0x5611f9===WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['disconnect']();}['_sendRequest'](_0x1be7ec,_0x55be5e){if(!this['_wsGateway']||!this['_isConnected'])throw new _0x4656cd('Comments',this);return this['_wsGateway']['_sendRequest'](0x9,_0x1be7ec,_0x6941ac['encode'](_0x55be5e));}}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 _0x41fedb from'./../../descriptor.js';export default class CommentDescriptor extends _0x41fedb{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'](_0x3637e0){return{..._0x3637e0,'createdAt':_0x3637e0['createdAt']?.['toISOString'](),'attributes':_0x3637e0['attributes']?JSON['stringify'](_0x3637e0['attributes']):null};}static['fromJSON'](_0x282d65){return{..._0x282d65,'createdAt':new Date(_0x282d65['createdAt']),'attributes':_0x282d65['attributes']?JSON['parse'](_0x282d65['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 _0x3b49e6 from'./../../descriptor.js';import _0x1f830b from'./commentdescriptor.js';export default class CommentsThreadDescriptor extends _0x3b49e6{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'](_0x115242){return{..._0x115242,'createdAt':_0x115242['createdAt']?.['toISOString'](),'deletedAt':_0x115242['deletedAt']?.['toISOString'](),'resolvedAt':_0x115242['resolvedAt']?.['toISOString'](),'attributes':_0x115242['attributes']?JSON['stringify'](_0x115242['attributes']):null,'context':_0x115242['context']?JSON['stringify'](_0x115242['context']):_0x115242['context'],'comments':_0x115242['comments']?.['map'](_0x1f830b['toJSON']),'unlinkedAt':_0x115242['unlinkedAt']?.['toISOString']()};}static['fromJSON'](_0x37ccb7){return{..._0x37ccb7,'createdAt':_0x37ccb7['createdAt']?new Date(_0x37ccb7['createdAt']):void 0x0,'deletedAt':_0x37ccb7['deletedAt']?new Date(_0x37ccb7['deletedAt']):void 0x0,'resolvedAt':_0x37ccb7['resolvedAt']?new Date(_0x37ccb7['resolvedAt']):void 0x0,'attributes':_0x37ccb7['attributes']?JSON['parse'](_0x37ccb7['attributes']):null,'context':_0x37ccb7['context']?JSON['parse'](_0x37ccb7['context']):void 0x0,'comments':_0x37ccb7['comments']?.['map'](_0x1f830b['fromJSON']),'unlinkedAt':_0x37ccb7['unlinkedAt']?new Date(_0x37ccb7['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 _0x40b441 from'../../descriptor.js';export default class CommentThreadAddedCommentDescriptor extends _0x40b441{static ['DESCRIPTOR_NAME']='CommentThreadAddedCommentDescriptor';static ['DESCRIPTOR']={'fields':{'commentId':{'id':0x1,'type':'string'},'createdAt':{'id':0x2,'type':'string'}}};static['toJSON'](_0x362c5d){return{'commentId':_0x362c5d['commentId'],'createdAt':_0x362c5d['createdAt']?.['toISOString']()};}static['fromJSON'](_0x135660){return{'commentId':_0x135660['commentId'],'createdAt':new Date(_0x135660['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 _0x923b12 from'./../../message.js';import _0x2d461f from'../descriptors/commentsthreaddescriptor.js';export default class AddCommentMessage extends _0x923b12{['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(_0x39acc4,_0x39a856,_0x443ed4,_0x36f3b7='',_0x46dc7a,_0x22cfe7='',_0x17af8a=null,_0x5a7cdb){super(),this['documentId']=_0x39acc4,this['commentThreadId']=_0x39a856,this['content']=_0x443ed4,this['commentId']=_0x36f3b7,this['userId']=_0x22cfe7,this['attributes']=_0x17af8a,this['commentThread']=_0x5a7cdb,this['createdAt']=_0x46dc7a?new Date(_0x46dc7a):'';}['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']?_0x2d461f['toJSON'](this['commentThread']):void 0x0};}static['fromJSON'](_0x13c7df){return new AddCommentMessage(_0x13c7df['documentId'],_0x13c7df['commentThreadId'],_0x13c7df['content'],_0x13c7df['commentId']?_0x13c7df['commentId']:void 0x0,_0x13c7df['createdAt']?new Date(_0x13c7df['createdAt']):void 0x0,_0x13c7df['userId']?_0x13c7df['userId']:void 0x0,_0x13c7df['attributes']?JSON['parse'](_0x13c7df['attributes']):{},_0x13c7df['commentThread']?_0x2d461f['fromJSON'](_0x13c7df['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 _0x300751 from'../../../message.js';import _0x27fe36 from'../../descriptors/commentdescriptor.js';export default class AddCommentThreadMessage extends _0x300751{['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(_0x4d2501,_0xa4d11d,_0x43c4e0=[],_0x16db2f,_0x4165c3=null,_0x19f586=null,_0x12b29a=null,_0x254f01=null,_0x24e354=null){super(),this['documentId']=_0x4d2501,this['commentThreadId']=_0xa4d11d,this['comments']=_0x43c4e0,this['context']=_0x16db2f,this['resolvedBy']=_0x4165c3,this['attributes']=_0x24e354,this['createdAt']=_0x19f586?new Date(_0x19f586):'',this['resolvedAt']=_0x12b29a?new Date(_0x12b29a):'',this['deletedAt']=_0x254f01?new Date(_0x254f01):'';}['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'](_0x33ce20=>_0x27fe36['toJSON'](_0x33ce20))};}static['fromJSON'](_0x57ed06){return new AddCommentThreadMessage(_0x57ed06['documentId'],_0x57ed06['commentThreadId'],_0x57ed06['comments']?.['map'](_0x3ec3c5=>_0x27fe36['fromJSON']({..._0x3ec3c5,'documentId':_0x57ed06['documentId'],'commentThreadId':_0x57ed06['commentThreadId']})),_0x57ed06['context']?JSON['parse'](_0x57ed06['context']):_0x57ed06['context'],_0x57ed06['resolvedBy'],_0x57ed06['createdAt']?new Date(_0x57ed06['createdAt']):void 0x0,_0x57ed06['resolvedAt']?new Date(_0x57ed06['resolvedAt']):void 0x0,_0x57ed06['deletedAt']?new Date(_0x57ed06['deletedAt']):void 0x0,_0x57ed06['attributes']?JSON['parse'](_0x57ed06['attributes']):_0x57ed06['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 _0xc6a4b5 from'../../../message.js';export default class ReopenCommentThreadMessage extends _0xc6a4b5{['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(_0x160a4d,_0x5cc224){super(),this['commentThreadId']=_0x160a4d,this['documentId']=_0x5cc224;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId']};}static['fromJSON'](_0x182a39){return new ReopenCommentThreadMessage(_0x182a39['commentThreadId'],_0x182a39['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 _0x444309 from'../../../message.js';export default class ResolveCommentThreadMessage extends _0x444309{['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(_0x1681f4,_0x3c163e,_0x1acde7,_0xf97a04){super(),this['commentThreadId']=_0x1681f4,this['documentId']=_0x3c163e,this['resolvedBy']=_0x1acde7,this['resolvedAt']=_0xf97a04?new Date(_0xf97a04):void 0x0;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']?.['toISOString']()};}static['fromJSON'](_0x11c28f){return new ResolveCommentThreadMessage(_0x11c28f['commentThreadId'],_0x11c28f['documentId'],_0x11c28f['resolvedBy'],_0x11c28f['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 _0x1a503e from'../../../message.js';export default class UpdateCommentThreadMessage extends _0x1a503e{['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(_0x14ea94,_0x3b8879,_0x43c045,_0x146ee5=null,_0x88d07d=null){super(),this['commentThreadId']=_0x14ea94,this['documentId']=_0x3b8879,this['context']=_0x43c045,this['attributes']=_0x146ee5,this['unlinkedAt']=_0x88d07d?new Date(_0x88d07d):'';}['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'](_0x558c1d){return new UpdateCommentThreadMessage(_0x558c1d['commentThreadId'],_0x558c1d['documentId'],_0x558c1d['context']?JSON['parse'](_0x558c1d['context']):_0x558c1d['context'],_0x558c1d['attributes']?JSON['parse'](_0x558c1d['attributes']):null,_0x558c1d['unlinkedAt']?new Date(_0x558c1d['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 _0x4e346f from'./../../message.js';export default class ConnectMessage extends _0x4e346f{['documentId'];static ['TYPE']='92';static ['READABLE_TYPE_NAME']='connectToComment';static ['DESCRIPTOR_NAME']='CommentsV2ConnectMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(_0x48036c){super(),this['documentId']=_0x48036c;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x409cfd){return new ConnectMessage(_0x409cfd['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 _0x38acfd from'./../../message.js';export default class GetCommentThreadMessage extends _0x38acfd{['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(_0x586675,_0x58d165){super(),this['commentThreadId']=_0x586675,this['documentId']=_0x58d165;}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'documentId':this['documentId']};}static['fromJSON'](_0x19aeff){return new GetCommentThreadMessage(_0x19aeff['commentThreadId'],_0x19aeff['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 _0x23a8a9 from'./../../message.js';export default class GetDocumentThreadsMessage extends _0x23a8a9{['documentId'];static ['TYPE']='94';static ['READABLE_TYPE_NAME']='getDocumentThreads';static ['DESCRIPTOR_NAME']='CommentsV2GetDocumentThreadsMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(_0x2ea60c){super(),this['documentId']=_0x2ea60c;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x1a18d7){return new GetDocumentThreadsMessage(_0x1a18d7['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 _0x28a340 from'./../../message.js';export default class RemoveCommentMessage extends _0x28a340{['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(_0x228c1a,_0x50253f,_0x10c584){super(),this['documentId']=_0x228c1a,this['commentThreadId']=_0x50253f,this['commentId']=_0x10c584;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'commentId':this['commentId']};}static['fromJSON'](_0x2eccaa){return new RemoveCommentMessage(_0x2eccaa['documentId'],_0x2eccaa['commentThreadId'],_0x2eccaa['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 _0x3ee6b3 from'./../../message.js';export default class RemoveCommentThreadMessage extends _0x3ee6b3{['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(_0x428737,_0x204735){super(),this['documentId']=_0x428737,this['commentThreadId']=_0x204735;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId']};}static['fromJSON'](_0x5af9b6){return new RemoveCommentThreadMessage(_0x5af9b6['documentId'],_0x5af9b6['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 _0x3cacd6 from'./../../message.js';import _0x8404da from'../descriptors/commentsthreaddescriptor.js';export default class UpdateCommentMessage extends _0x3cacd6{['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(_0x25d4f2,_0x52a709,_0x197d81,_0x25017a,_0x3e1595=null,_0x41bb58=!0x1,_0xe8183d){super(),this['documentId']=_0x25d4f2,this['commentThreadId']=_0x52a709,this['commentId']=_0x197d81,this['content']=_0x25017a,this['attributes']=_0x3e1595,this['isAttributesUpdated']=_0x41bb58,this['commentThread']=_0xe8183d;}['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']?_0x8404da['toJSON'](this['commentThread']):void 0x0};}static['fromJSON'](_0x22c9c6){return new UpdateCommentMessage(_0x22c9c6['documentId'],_0x22c9c6['commentThreadId'],_0x22c9c6['commentId'],_0x22c9c6['content'],_0x22c9c6['attributes']?JSON['parse'](_0x22c9c6['attributes']):null,_0x22c9c6['isAttributesUpdated'],_0x22c9c6['commentThread']?_0x8404da['fromJSON'](_0x22c9c6['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 _0xfd5cda from'./../../message.js';export default class AddCommentResponse extends _0xfd5cda{['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(_0x2edcb2,_0x4cf441,_0x108370){super(),this['commentThreadId']=_0x2edcb2,this['commentId']=_0x4cf441,this['createdAt']=new Date(_0x108370);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'commentId':this['commentId'],'createdAt':this['createdAt']['toISOString']()};}static['fromJSON'](_0x2d286a){return new AddCommentResponse(_0x2d286a['commentThreadId'],_0x2d286a['commentId'],_0x2d286a['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 _0x48daec from'./../../../message.js';import _0x5ecc25 from'../../descriptors/commentthreadaddedcomment.js';export default class AddCommentThreadResponse extends _0x48daec{['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(_0x5c4721,_0x5db865,_0x5f0b09=[]){super(),this['commentThreadId']=_0x5c4721,this['comments']=_0x5f0b09,this['createdAt']=new Date(_0x5db865);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'createdAt':this['createdAt']['toISOString'](),'comments':this['comments']['map'](_0x51292b=>_0x5ecc25['toJSON'](_0x51292b))};}static['fromJSON'](_0x585e45){return new AddCommentThreadResponse(_0x585e45['commentThreadId'],_0x585e45['createdAt'],_0x585e45['comments']['map'](_0x401b55=>_0x5ecc25['fromJSON'](_0x401b55)));}}
@@ -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 _0x560910 from'./../../../message.js';export default class ResolveCommentThreadResponse extends _0x560910{['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(_0x281cc1,_0x38670b,_0x2d50ec,_0x39e07e){super(),this['commentThreadId']=_0x281cc1,this['documentId']=_0x38670b,this['resolvedBy']=_0x2d50ec,this['resolvedAt']=new Date(_0x39e07e);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'documentId':this['documentId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']['toISOString']()};}static['fromJSON'](_0x16c036){return new ResolveCommentThreadResponse(_0x16c036['commentThreadId'],_0x16c036['documentId'],_0x16c036['resolvedBy'],_0x16c036['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 _0x135514 from'./../../message.js';import _0x2c0d83 from'../descriptors/commentsthreaddescriptor.js';export default class ConnectResponse extends _0x135514{['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(_0x24450f,_0x51f8e7,_0x85fb34){super(),this['channel']=_0x24450f,this['_threads']=_0x51f8e7,this['_threadsV2']=_0x85fb34,this['threads']=_0x85fb34?.['length']?_0x85fb34:_0x51f8e7;}['toJSON'](){return{'channel':this['channel'],'threads':this['_threads']?.['map'](_0x58c278=>JSON['stringify'](_0x58c278)),'threadsV2':this['_threadsV2']?.['map'](_0x2c0d83['toJSON'])};}static['fromJSON'](_0x57b361){return new ConnectResponse(_0x57b361['channel'],_0x57b361['threads']?.['map'](_0x4ff9e9=>JSON['parse'](_0x4ff9e9)),_0x57b361['threadsV2']?.['map'](_0x2c0d83['fromJSON']));}}