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