@ckeditor/ckeditor-cloud-services-collaboration 52.7.1 → 53.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/dist/index.js +19 -19
  2. package/dist/index.js.map +1 -1
  3. package/package.json +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.1",
4
4
  "description": "CKEditor Cloud Services Collaboration low-level API is required by CKEditor 5 Collaboration features to enable real-time collaborative editing in CKEditor 5.",
5
5
  "main": "src/index.js",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -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(_0xc4ce54,_0xcb08db,_0x47e062=null,_0x22b2e2={}){super('cloud-services-internal-error:\x20'+_0xc4ce54),this['context']=_0xcb08db,this['code']=_0x47e062,this['data']=_0x22b2e2,this['name']='CKEditorError';}static['fromPublicError'](_0x194ad8){return new CKEditorCloudServicesError(function(_0x4a6297){let _0x8d952='cloud-services-error:\x20'+_0x4a6297['message'];return _0x4a6297['data']&&(_0x8d952+='\x0aError\x20data:\x20'+JSON['stringify'](_0x4a6297['data'])),_0x4a6297['explanation']&&(_0x8d952+='\x0aExplanation:\x20'+_0x4a6297['explanation']),_0x4a6297['action']&&(_0x8d952+='\x0aAction:\x20'+_0x4a6297['action']),_0x4a6297['traceId']&&(_0x8d952+='\x0aTraceId:\x20'+_0x4a6297['traceId']),_0x4a6297['code']&&(_0x8d952+='\x0aCode:\x20'+_0x4a6297['code']),_0x8d952;}(_0x194ad8),_0x194ad8);}}
@@ -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(_0x4cb393,_0x1d5407){super(),this['name']='CKEditorCloudServicesServerError',this['stack']=void 0x0,this['message']=_0x4cb393,this['code']=_0x1d5407['code'],this['traceId']=_0x1d5407['traceId'],this['data']=_0x1d5407['data'];}static['fromPublicError'](_0x4db535){return new CKEditorCloudServicesServerError(function(_0x3f3077){let _0x521738='cloud-services-server-error:\x20'+_0x3f3077['message'];return _0x3f3077['explanation']&&(_0x521738+='\x0aExplanation:\x20'+_0x3f3077['explanation']),_0x3f3077['action']&&(_0x521738+='\x0aAction:\x20'+_0x3f3077['action']),_0x3f3077['traceId']&&(_0x521738+='\x0aTraceId:\x20'+_0x3f3077['traceId']),_0x3f3077['code']&&(_0x521738+='\x0aCode:\x20'+_0x3f3077['code']),_0x521738;}(_0x4db535),_0x4db535);}}
@@ -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 _0xf28218}from'uuid';import{EmitterMixin}from'ckeditor5/src/utils.js';import _0x1d9184 from'./../messagescompressor.js';import _0x555b56 from'./../sessions/sessions.js';import _0x32f3f9 from'./messages/collaborativeeditingconnectmessage.js';import _0x408367 from'./messages/collaborativeeditingupdatemessage.js';import _0x280d59 from'./messages/collaborativeeditingreconnectmessage.js';import _0x3dbea1 from'./responses/collaborativeeditingresponse.js';import _0x14e6b6 from'./responses/collaborativeeditingconnectresponse.js';import _0x2445aa from'./../websocketgateway/websocketgateway.js';import _0x5b5e37 from'../ckeditorcloudserviceserror.js';import _0x37834b from'../errors/ServiceNotConnectedError.js';import _0x17aea7 from'./responses/getdocumentdetailsresponse.js';import _0x5ac1cf 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(_0x2c719b,_0x1989a9){if(super(),!_0x2c719b)throw new TypeError('Param\x20\x22bundleVersion\x22\x20must\x20be\x20provided.');this['_id']=_0x1989a9??_0xf28218(),this['_isConnected']=!0x1,this['_bundleVersion']=_0x2c719b;}['getId'](){return this['_id'];}['isConnected'](){return this['_isConnected'];}['connect'](_0x37cb06,_0x355f6b={'buffers':[],'types':[]},_0x453b92){const _0x1a6c59=new _0x32f3f9(this['getId'](),_0x355f6b['buffers'],_0x355f6b['types'],this['_bundleVersion'],_0x453b92);return this['_connect'](_0x37cb06,_0x1a6c59);}['reconnect'](_0xdead48,_0x2795b5){if(this['isConnected']())throw new _0x5b5e37('Cannot\x20reconnect\x20to\x20already\x20connected\x20service.',_0xdead48);return this['_connect'](_0xdead48,new _0x280d59(this['getId'](),_0x2795b5,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 _0x33437c=new _0x5ac1cf(this['getId']());if(!this['_wsGateway'])throw new _0x37834b('Collaborative\x20Editing',this);const _0x3ed84e=await this['_wsGateway']['_sendRequest'](0x1,_0x5ac1cf['TYPE'],_0x1d9184['encode'](_0x33437c));return _0x1d9184['decode'](_0x3ed84e,_0x17aea7);}async['sendOperations'](_0x2ec795,_0x229454,_0x9c9ca6){if(!_0x2ec795?.['types']?.['length'])throw new _0x5b5e37('Cannot\x20send\x20empty\x20update.',this['_wsGateway']);const _0x3b21c7='number'==typeof _0x229454?_0x229454:parseInt(_0x229454);if(!Number['isInteger'](_0x3b21c7)||_0x3b21c7<0x0)throw new _0x5b5e37('Base\x20version\x20not\x20provided.',this['_wsGateway']);const _0x10e816=new _0x408367(this['getId'](),_0x2ec795['buffers'],_0x2ec795['types'],_0x3b21c7,[],_0x9c9ca6);if(!this['_wsGateway']||!this['_isConnected'])throw new _0x37834b('Collaborative\x20Editing',this);const _0x3cbd02=await this['_wsGateway']['_sendRequest'](0x1,_0x408367['TYPE'],_0x1d9184['encode'](_0x10e816));return _0x1d9184['decode'](_0x3cbd02,_0x3dbea1);}async['getConnectedSessions'](){if(!this['_isConnected'])throw new _0x37834b('Collaborative\x20Editing',this);return this['_connectedSessions']||(this['_connectedSessions']=await _0x555b56['getConnectedSessions'](this['_wsGateway'],this['_id'],0x1)),this['_connectedSessions'];}static['getConnectedSessions'](_0x5a86f4,_0x37c7a5){return _0x555b56['getConnectedSessions'](_0x5a86f4,_0x37c7a5,0x1);}async['_connect'](_0x62a81,_0x26104b){if(this['isConnected']())return;if(_0x62a81['state']!==_0x2445aa['STATE_CONNECTED'])throw new _0x5b5e37('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x62a81);this['_wsGateway']=_0x62a81,this['stopListening'](_0x62a81,'change:state');const _0x1454e9=await _0x62a81['_sendRequest'](0x1,_0x26104b['constructor']['TYPE'],_0x1d9184['encode'](_0x26104b)),_0x1e0cba=_0x1d9184['decode'](_0x1454e9,_0x14e6b6);return this['listenTo'](_0x62a81,'change:state',(_0x46ae6c,_0x144047,_0x1f2350)=>this['_onWsGatewayStateChange'](_0x1f2350),{'priority':_0x2445aa['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0x62a81,_0x1e0cba['channel']),this['_isConnected']=!0x0,this['fire']('connected'),_0x1e0cba;}['_connectToChannel'](_0x56f8e6,_0x1cdeb3){this['_channel']=_0x56f8e6['_getChannel'](0x1,_0x1cdeb3),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x408367['TYPE']),(_0x47c1e9,_0x520880)=>{const _0x6ed2d3=_0x1d9184['decode'](_0x520880,_0x408367);this['fire']('operationsReceived',_0x6ed2d3['baseVersion'],_0x6ed2d3['data'],_0x6ed2d3['metadata']);});}['_onWsGatewayStateChange'](_0x46d909){_0x46d909===_0x2445aa['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 _0x2268f4 from'./../../descriptor.js';export default class OperationMetadataDescriptor extends _0x2268f4{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:_0x4b6291,..._0x523cbd}){const _0x5ae3dc={..._0x523cbd};return _0x4b6291?.['toISOString']&&(_0x5ae3dc['createdAt']=_0x4b6291['toISOString']()),_0x5ae3dc;}static['fromJSON']({createdAt:_0x19a278,..._0x5cb1cc}){const _0x220273={..._0x5cb1cc};return _0x19a278&&(_0x220273['createdAt']=new Date(_0x19a278)),_0x220273;}}
@@ -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'](_0x194bc0,_0x5f496e){if(!_0x194bc0?.['length']||!_0x5f496e?.['length'])return[];const _0x4b0cd7=[];let _0x5cdd11=0x0;for(const _0x4a4a97 of _0x194bc0)if(0x0!==_0x4a4a97){if(!_0x5f496e[_0x5cdd11])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');_0x4b0cd7['push'](_0x5f496e[_0x5cdd11]),_0x5cdd11++;}else _0x4b0cd7['push'](_0x4b0cd7[_0x4b0cd7['length']-0x1]);return _0x4b0cd7;}static['removeUnnecessaryMetadata'](_0x30b8b2,_0x46db41){if(!_0x30b8b2?.['length']||!_0x46db41?.['length'])return[];const _0x36a781=[];for(let _0xb7ce55=0x0;_0xb7ce55<_0x30b8b2['length'];_0xb7ce55++)if(0x0!==_0x30b8b2[_0xb7ce55]){if(!_0x46db41[_0xb7ce55])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');_0x36a781['push'](_0x46db41[_0xb7ce55]);}return _0x36a781;}}
@@ -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 _0x23b33d from'./../../message.js';export default class CollaborativeEditingConnectMessage extends _0x23b33d{['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(_0x2e16bb,_0x5b6946,_0x127f2,_0x188135,_0x578d81=''){super(),this['id']=_0x2e16bb,this['buffers']=_0x5b6946,this['types']=_0x127f2,this['bundleVersion']=_0x188135,this['lastOperationId']=_0x578d81;}['toJSON'](){return{'id':this['id'],'buffers':this['buffers'],'types':this['types'],'bundleVersion':this['bundleVersion'],'lastOperationId':this['lastOperationId']};}static['fromJSON'](_0x4f3842){return new CollaborativeEditingConnectMessage(_0x4f3842['id'],_0x4f3842['buffers'],_0x4f3842['types'],_0x4f3842['bundleVersion'],_0x4f3842['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 _0x3e2bff from'./../../message.js';export default class CollaborativeEditingReconnectMessage extends _0x3e2bff{['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(_0x2ea802,_0x4960f7,_0x1aab58){super(),this['id']=_0x2ea802,this['lastKnowVersion']=_0x4960f7,this['bundleVersion']=_0x1aab58;}['toJSON'](){return{'id':this['id'],'bundleVersion':this['bundleVersion'],'lastKnowVersion':this['lastKnowVersion']};}static['fromJSON'](_0x419c30){return new CollaborativeEditingReconnectMessage(_0x419c30['id'],_0x419c30['lastKnowVersion'],_0x419c30['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 _0x5d0891 from'./../../message.js';import _0x544a9d from'./../helpers/operationmetadatahelpers.js';import _0x5b3180 from'../descriptors/operationmetadatadescriptor.js';export default class CollaborativeEditingUpdateMessage extends _0x5d0891{['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(_0x34a547,_0x10034c,_0x26ea9b,_0x536e43,_0x419787=[],_0xc68bcf=''){super(),this['id']=_0x34a547,this['buffers']=_0x10034c,this['types']=_0x26ea9b,this['baseVersion']=_0x536e43,this['metadata']=_0x419787,this['lastOperationId']=_0xc68bcf;}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':_0x544a9d['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](_0x5b3180['toJSON']),'lastOperationId':this['lastOperationId']};}static['fromJSON'](_0x523ab0){return new CollaborativeEditingUpdateMessage(_0x523ab0['id'],_0x523ab0['buffers'],_0x523ab0['types'],_0x523ab0['baseVersion'],_0x544a9d['prepareMetadataForOperations'](_0x523ab0['types'],_0x523ab0['metadata'])['map'](_0x5b3180['fromJSON']),_0x523ab0['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 _0x217acc from'../../message.js';export default class GetDocumentDetailsMessage extends _0x217acc{['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(_0x509060){super(),this['documentId']=_0x509060;}get['data'](){return{'documentId':this['documentId']};}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x2d1740){return new GetDocumentDetailsMessage(_0x2d1740['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 _0x41eecc from'./../../message.js';import _0x2c007c from'./../helpers/operationmetadatahelpers.js';import _0xf776dd from'../descriptors/operationmetadatadescriptor.js';export default class CollaborativeEditingConnectResponse extends _0x41eecc{['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':_0xf776dd['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(_0x39ca84,_0x5c5593,_0x35c119=[],_0x2dff6d=[],_0x56473f=0x0,_0x325cda=[],_0x593754=null,_0x21a17e='',_0x5106bc='',_0x240c32=null){super(),this['channel']=_0x39ca84,this['version']=_0x5c5593,this['buffers']=_0x35c119,this['types']=_0x2dff6d,this['offset']=_0x56473f,this['metadata']=_0x325cda,this['initData']=_0x593754,this['sessionId']=_0x21a17e,this['lastOperationId']=_0x5106bc,this['sessionCreatedAt']=_0x240c32;}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':_0x2c007c['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](_0xf776dd['toJSON']),'initData':this['initData']??'','isInitialized':'string'==typeof this['initData'],'lastOperationId':this['lastOperationId'],'sessionCreatedAt':this['sessionCreatedAt']?this['sessionCreatedAt']['toISOString']():null};}static['create'](_0x3dcce5){return new CollaborativeEditingConnectResponse(_0x3dcce5['channel'],_0x3dcce5['version'],_0x3dcce5['buffers'],_0x3dcce5['types'],_0x3dcce5['offset'],_0x3dcce5['metadata'],_0x3dcce5['initData'],_0x3dcce5['sessionId'],_0x3dcce5['lastOperationId'],_0x3dcce5['sessionCreatedAt']);}static['fromJSON'](_0x87538b){let _0x5349d2=null;return!0x0===_0x87538b['isInitialized']?_0x5349d2=_0x87538b['initData']??'':'boolean'!=typeof _0x87538b['isInitialized']&&_0x87538b['initData']&&(_0x5349d2=_0x87538b['initData']),CollaborativeEditingConnectResponse['create']({'channel':_0x87538b['channel'],'version':_0x87538b['version'],'buffers':_0x87538b['buffers'],'types':_0x87538b['types'],'offset':_0x87538b['offset'],'metadata':_0x2c007c['prepareMetadataForOperations'](_0x87538b['types'],_0x87538b['metadata'])['map'](_0xf776dd['fromJSON']),'initData':_0x5349d2,'sessionId':_0x87538b['sessionId'],'lastOperationId':_0x87538b['lastOperationId'],'sessionCreatedAt':_0x87538b['sessionCreatedAt']?new Date(_0x87538b['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 _0x2fa15b from'./../../message.js';import _0x4c63b5 from'./../helpers/operationmetadatahelpers.js';import _0x5840b1 from'../descriptors/operationmetadatadescriptor.js';export default class CollaborativeEditingResponse extends _0x2fa15b{['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(_0x5e0e9d,_0x230ea5=[],_0x17aeb4=[],_0xaa31e=[],_0x130935='',_0x2dbd22=null){super(),this['version']=_0x5e0e9d,this['buffers']=_0x230ea5,this['types']=_0x17aeb4,this['metadata']=_0xaa31e,this['lastOperationId']=_0x130935,this['lastOperationAcceptedAt']=_0x2dbd22;}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':_0x4c63b5['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](_0x5840b1['toJSON']),'lastOperationId':this['lastOperationId'],'lastOperationAcceptedAt':this['lastOperationAcceptedAt']instanceof Date?this['lastOperationAcceptedAt']['toISOString']():this['lastOperationAcceptedAt']};}static['fromJSON'](_0x20afc8){return new CollaborativeEditingResponse(_0x20afc8['version'],_0x20afc8['buffers'],_0x20afc8['types'],_0x4c63b5['prepareMetadataForOperations'](_0x20afc8['types'],_0x20afc8['metadata'])['map'](_0x5840b1['fromJSON']),_0x20afc8['lastOperationId'],_0x20afc8['lastOperationAcceptedAt']?new Date(_0x20afc8['lastOperationAcceptedAt']):null);}static['create'](_0x3d4e92){return new CollaborativeEditingResponse(_0x3d4e92['version'],_0x3d4e92['buffers'],_0x3d4e92['types'],_0x3d4e92['metadata'],_0x3d4e92['lastOperationId'],_0x3d4e92['lastOperationAcceptedAt']?new Date(_0x3d4e92['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 _0x3f71a4 from'./../../message.js';export default class GetDocumentDetailsResponse extends _0x3f71a4{['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(_0x4c70b4,_0x196079){super(),this['lastDocumentSession']=_0x4c70b4,this['currentDocumentSession']=_0x196079;}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'](_0x30d6f6){const _0x26b7a8=_0x30d6f6['lastDocumentSessionId']?{'id':_0x30d6f6['lastDocumentSessionId'],'lastOperationId':_0x30d6f6['lastDocumentSessionOperationId']}:void 0x0,_0x340e6f=_0x30d6f6['currentDocumentSessionId']?{'lastOperationId':_0x30d6f6['currentDocumentSessionOperationId'],'version':_0x30d6f6['currentDocumentSessionVersion'],'id':_0x30d6f6['currentDocumentSessionId']}:void 0x0;return new GetDocumentDetailsResponse(_0x26b7a8,_0x340e6f);}}
@@ -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 _0x53c9b4 from'./../messagescompressor.js';import _0x14b047 from'./messages/addcommentmessage.js';import _0x2ca29c from'./responses/addcommentresponse.js';import _0x3fc9b7 from'./messages/connectmessage.js';import _0x247abf from'./responses/connectresponse.js';import _0x672851 from'./messages/removecommentmessage.js';import _0x55b337 from'./messages/removecommentthreadmessage.js';import _0xba67d3 from'./messages/updatecommentmessage.js';import _0x56e34e from'./messages/getcommentthreadmessage.js';import _0xec0354 from'./responses/getcommentthreadresponse.js';import _0xdfd1df from'./messages/getdocumentthreadsmessage.js';import _0x5cd938 from'./responses/getdocumentthreadsresponse.js';import _0x2db8b7,{WEB_SOCKET_GATEWAY_STATES}from'./../websocketgateway/websocketgateway.js';import _0x49d952 from'./../ckeditorcloudserviceserror.js';import _0x31eebe from'../sessions/sessions.js';import _0x27696d from'../errors/ServiceNotConnectedError.js';import _0x473850 from'../ckeditorcloudservicesservererror.js';import _0x387ab3 from'./responses/comment-threads/addcommentthreadresponse.js';import _0xa18ccb from'./messages/comment-threads/addcommentthreadmessage.js';import _0x276060 from'./messages/comment-threads/resolvecommentthreadmessage.js';import _0x174ae9 from'./messages/comment-threads/reopencommentthreadmessage.js';import _0x548a7b from'./messages/comment-threads/updatecommentthreadmessage.js';import _0x57f19c 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(_0x52d444){super(),this['_documentId']=_0x52d444;}get['isConnected'](){return this['_isConnected'];}async['connect'](_0x67d0c){if(this['_isConnected'])return;if(_0x67d0c['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new _0x49d952('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x67d0c);const _0x1737fb=new _0x3fc9b7(this['_documentId']);this['_wsGateway']=_0x67d0c,this['stopListening'](_0x67d0c,'change:state');const _0x1d7d7b=await _0x67d0c['_sendRequest'](0x9,_0x3fc9b7['TYPE'],_0x53c9b4['encode'](_0x1737fb)),{channel:_0x3b426c,threads:_0x266c95}=_0x53c9b4['decode'](_0x1d7d7b,_0x247abf);return this['listenTo'](_0x67d0c,'change:state',(_0x53330b,_0xe486d8,_0x386b78)=>this['_onWsGatewayStateChange'](_0x386b78),{'priority':_0x2db8b7['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0x67d0c,_0x3b426c),this['_isConnected']=!0x0,this['fire']('connected'),_0x266c95;}['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'](_0x10e636,_0x36521a,_0x5e9c69,_0x347f32){const _0xb3caa=new _0x14b047(this['_documentId'],_0x10e636,_0x5e9c69,_0x36521a,void 0x0,void 0x0,_0x347f32),_0x47ac09=await this['_sendRequest'](_0x14b047['TYPE'],_0xb3caa);return _0x53c9b4['decode'](_0x47ac09,_0x2ca29c);}async['updateComment'](_0xd765b1,_0x417214,_0x5418d4,_0x4ef19c){const _0x4d1bce=void 0x0!==_0x4ef19c,_0x58b80b=new _0xba67d3(this['_documentId'],_0xd765b1,_0x417214,_0x5418d4,_0x4ef19c,_0x4d1bce);await this['_sendRequest'](_0xba67d3['TYPE'],_0x58b80b);}async['removeComment'](_0x43da23,_0x1de01f){const _0x2a71fd=new _0x672851(this['_documentId'],_0x43da23,_0x1de01f);await this['_sendRequest'](_0x672851['TYPE'],_0x2a71fd);}async['removeCommentThread'](_0x56ffc0){const _0x33eaf2=new _0x55b337(this['_documentId'],_0x56ffc0);await this['_sendRequest'](_0x55b337['TYPE'],_0x33eaf2);}async['addCommentThread'](_0x5ec7d2){const _0x22db1b=new _0xa18ccb(this['_documentId'],_0x5ec7d2['commentThreadId'],_0x5ec7d2['comments']?.['map'](_0x297929=>({..._0x297929,'documentId':this['_documentId'],'commentThreadId':_0x5ec7d2['commentThreadId']})),_0x5ec7d2['context'],_0x5ec7d2['resolvedBy'],_0x5ec7d2['createdAt'],_0x5ec7d2['resolvedAt'],_0x5ec7d2['deletedAt'],_0x5ec7d2['attributes']),_0x24795a=await this['_sendRequest'](_0xa18ccb['TYPE'],_0x22db1b);return _0x53c9b4['decode'](_0x24795a,_0x387ab3);}async['resolveCommentThread'](_0x332637){const _0x514dac=new _0x276060(_0x332637,this['_documentId']),_0x1de7c8=await this['_sendRequest'](_0x276060['TYPE'],_0x514dac);return _0x53c9b4['decode'](_0x1de7c8,_0x57f19c);}async['reopenCommentThread'](_0x160dec){const _0x2e9351=new _0x174ae9(_0x160dec,this['_documentId']);await this['_sendRequest'](_0x174ae9['TYPE'],_0x2e9351);}async['updateCommentThread'](_0x1ede78){const _0x144f9e=new _0x548a7b(_0x1ede78['commentThreadId'],this['_documentId'],_0x1ede78['context'],_0x1ede78['attributes'],_0x1ede78['unlinkedAt']);await this['_sendRequest'](_0x548a7b['TYPE'],_0x144f9e);}async['getCommentThread'](_0x3b9aad,_0x13029b=0x1){const _0x140a22=new _0x56e34e(_0x3b9aad,this['_documentId']);try{const _0x19ed21=await this['_sendRequest'](_0x56e34e['TYPE'],_0x140a22),_0x2a82ec=_0x53c9b4['decode'](_0x19ed21,_0xec0354);return{'commentThreadId':_0x2a82ec['commentThreadId'],'comments':_0x2a82ec['comments'],'attributes':_0x2a82ec['attributes'],'context':_0x2a82ec['context'],'resolvedAt':_0x2a82ec['resolvedAt'],'resolvedBy':_0x2a82ec['resolvedBy'],'deletedAt':_0x2a82ec['deletedAt'],'unlinkedAt':_0x2a82ec['unlinkedAt']};}catch(_0x40846a){if('CKEditorCloudServicesServerError'===_0x40846a['name']&&'404'===_0x40846a['code']&&_0x13029b<0x5)return await(_0x3c4c1=0x64*_0x13029b,new Promise(_0x4755c0=>{setTimeout(_0x4755c0,_0x3c4c1);})),this['getCommentThread'](_0x3b9aad,_0x13029b+0x1);if('CKEditorCloudServicesServerError'===_0x40846a['name'])throw _0x40846a;throw _0x473850['fromPublicError'](_0x40846a);}var _0x3c4c1;}async['getDocumentThreads'](){const _0x349636=new _0xdfd1df(this['_documentId']),_0x4405e4=await this['_sendRequest'](_0xdfd1df['TYPE'],_0x349636),{threads:_0x1b1f0d}=_0x53c9b4['decode'](_0x4405e4,_0x5cd938);return{'threads':_0x1b1f0d};}async['getConnectedSessions'](){if(!this['_isConnected'])throw new _0x27696d('Comments',this);return this['_connectedSessions']||(this['_connectedSessions']=await _0x31eebe['getConnectedSessions'](this['_wsGateway'],this['_documentId'],0x9)),this['_connectedSessions'];}['_connectToChannel'](_0x3a904a,_0x1141a9){this['_channel']=_0x3a904a['_getChannel'](CommentsService['_SERVICE'],_0x1141a9),this['_channel']&&(this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x14b047['TYPE']),(_0x1ea542,_0x15fc98)=>{const _0x1b5a5f=_0x53c9b4['decode'](_0x15fc98,_0x14b047);this['fire']('commentAdded',_0x1b5a5f);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x672851['TYPE']),(_0x5251ef,_0x41ed2c)=>{const _0x35d951=_0x53c9b4['decode'](_0x41ed2c,_0x672851);this['fire']('commentRemoved',_0x35d951);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0xba67d3['TYPE']),(_0x34dc7e,_0xb1b491)=>{const _0x1e881b=_0x53c9b4['decode'](_0xb1b491,_0xba67d3);this['fire']('commentUpdated',_0x1e881b);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x55b337['TYPE']),(_0x1a11f6,_0x4d3d51)=>{const _0x4d5aed=_0x53c9b4['decode'](_0x4d3d51,_0x55b337);this['fire']('commentThreadRemoved',_0x4d5aed);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0xa18ccb['TYPE']),(_0x5124d9,_0x1962f8)=>{const _0x2920d7=_0x53c9b4['decode'](_0x1962f8,_0xa18ccb);this['fire']('commentThreadAdded',_0x2920d7);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x548a7b['TYPE']),(_0x1a40cb,_0x43fa4e)=>{const _0x44aba3=_0x53c9b4['decode'](_0x43fa4e,_0x548a7b);this['fire']('commentThreadUpdated',_0x44aba3);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x276060['TYPE']),(_0x108137,_0x53199b)=>{const _0x5e4f75=_0x53c9b4['decode'](_0x53199b,_0x276060);this['fire']('commentThreadResolved',_0x5e4f75);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x174ae9['TYPE']),(_0x1d9ece,_0x3b7e72)=>{const _0x5b0e54=_0x53c9b4['decode'](_0x3b7e72,_0x174ae9);this['fire']('commentThreadReopened',_0x5b0e54);}));}['_onWsGatewayStateChange'](_0x486279){_0x486279===WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['disconnect']();}['_sendRequest'](_0x3df959,_0x3b72e8){if(!this['_wsGateway']||!this['_isConnected'])throw new _0x27696d('Comments',this);return this['_wsGateway']['_sendRequest'](0x9,_0x3df959,_0x53c9b4['encode'](_0x3b72e8));}}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 _0x292dd9 from'./../../descriptor.js';export default class CommentDescriptor extends _0x292dd9{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'](_0x29f27f){return{..._0x29f27f,'createdAt':_0x29f27f['createdAt']?.['toISOString'](),'attributes':_0x29f27f['attributes']?JSON['stringify'](_0x29f27f['attributes']):null};}static['fromJSON'](_0x9ce8df){return{..._0x9ce8df,'createdAt':new Date(_0x9ce8df['createdAt']),'attributes':_0x9ce8df['attributes']?JSON['parse'](_0x9ce8df['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 _0x3f6c45 from'./../../descriptor.js';import _0x22a86b from'./commentdescriptor.js';export default class CommentsThreadDescriptor extends _0x3f6c45{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'](_0x78de87){return{..._0x78de87,'createdAt':_0x78de87['createdAt']?.['toISOString'](),'deletedAt':_0x78de87['deletedAt']?.['toISOString'](),'resolvedAt':_0x78de87['resolvedAt']?.['toISOString'](),'attributes':_0x78de87['attributes']?JSON['stringify'](_0x78de87['attributes']):null,'context':_0x78de87['context']?JSON['stringify'](_0x78de87['context']):_0x78de87['context'],'comments':_0x78de87['comments']?.['map'](_0x22a86b['toJSON']),'unlinkedAt':_0x78de87['unlinkedAt']?.['toISOString']()};}static['fromJSON'](_0x532f63){return{..._0x532f63,'createdAt':_0x532f63['createdAt']?new Date(_0x532f63['createdAt']):void 0x0,'deletedAt':_0x532f63['deletedAt']?new Date(_0x532f63['deletedAt']):void 0x0,'resolvedAt':_0x532f63['resolvedAt']?new Date(_0x532f63['resolvedAt']):void 0x0,'attributes':_0x532f63['attributes']?JSON['parse'](_0x532f63['attributes']):null,'context':_0x532f63['context']?JSON['parse'](_0x532f63['context']):void 0x0,'comments':_0x532f63['comments']?.['map'](_0x22a86b['fromJSON']),'unlinkedAt':_0x532f63['unlinkedAt']?new Date(_0x532f63['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 _0x15d5ef from'../../descriptor.js';export default class CommentThreadAddedCommentDescriptor extends _0x15d5ef{static ['DESCRIPTOR_NAME']='CommentThreadAddedCommentDescriptor';static ['DESCRIPTOR']={'fields':{'commentId':{'id':0x1,'type':'string'},'createdAt':{'id':0x2,'type':'string'}}};static['toJSON'](_0x282f34){return{'commentId':_0x282f34['commentId'],'createdAt':_0x282f34['createdAt']?.['toISOString']()};}static['fromJSON'](_0x837044){return{'commentId':_0x837044['commentId'],'createdAt':new Date(_0x837044['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 _0x594d68 from'./../../message.js';import _0x5ea36f from'../descriptors/commentsthreaddescriptor.js';export default class AddCommentMessage extends _0x594d68{['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(_0x53f117,_0x2fccab,_0x572791,_0x560b31='',_0x1aaecd,_0x1fe232='',_0x3bf54f=null,_0x53e785){super(),this['documentId']=_0x53f117,this['commentThreadId']=_0x2fccab,this['content']=_0x572791,this['commentId']=_0x560b31,this['userId']=_0x1fe232,this['attributes']=_0x3bf54f,this['commentThread']=_0x53e785,this['createdAt']=_0x1aaecd?new Date(_0x1aaecd):'';}['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']?_0x5ea36f['toJSON'](this['commentThread']):void 0x0};}static['fromJSON'](_0x4f2fbe){return new AddCommentMessage(_0x4f2fbe['documentId'],_0x4f2fbe['commentThreadId'],_0x4f2fbe['content'],_0x4f2fbe['commentId']?_0x4f2fbe['commentId']:void 0x0,_0x4f2fbe['createdAt']?new Date(_0x4f2fbe['createdAt']):void 0x0,_0x4f2fbe['userId']?_0x4f2fbe['userId']:void 0x0,_0x4f2fbe['attributes']?JSON['parse'](_0x4f2fbe['attributes']):{},_0x4f2fbe['commentThread']?_0x5ea36f['fromJSON'](_0x4f2fbe['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 _0x59182b from'../../../message.js';import _0x447717 from'../../descriptors/commentdescriptor.js';export default class AddCommentThreadMessage extends _0x59182b{['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(_0x33f87d,_0x401b09,_0x25024d=[],_0x1c8d4a,_0x5c4f68=null,_0x55c67c=null,_0x151ab6=null,_0x40786b=null,_0x3170f3=null){super(),this['documentId']=_0x33f87d,this['commentThreadId']=_0x401b09,this['comments']=_0x25024d,this['context']=_0x1c8d4a,this['resolvedBy']=_0x5c4f68,this['attributes']=_0x3170f3,this['createdAt']=_0x55c67c?new Date(_0x55c67c):'',this['resolvedAt']=_0x151ab6?new Date(_0x151ab6):'',this['deletedAt']=_0x40786b?new Date(_0x40786b):'';}['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'](_0x55c9de=>_0x447717['toJSON'](_0x55c9de))};}static['fromJSON'](_0x573ec7){return new AddCommentThreadMessage(_0x573ec7['documentId'],_0x573ec7['commentThreadId'],_0x573ec7['comments']?.['map'](_0x5d9e49=>_0x447717['fromJSON']({..._0x5d9e49,'documentId':_0x573ec7['documentId'],'commentThreadId':_0x573ec7['commentThreadId']})),_0x573ec7['context']?JSON['parse'](_0x573ec7['context']):_0x573ec7['context'],_0x573ec7['resolvedBy'],_0x573ec7['createdAt']?new Date(_0x573ec7['createdAt']):void 0x0,_0x573ec7['resolvedAt']?new Date(_0x573ec7['resolvedAt']):void 0x0,_0x573ec7['deletedAt']?new Date(_0x573ec7['deletedAt']):void 0x0,_0x573ec7['attributes']?JSON['parse'](_0x573ec7['attributes']):_0x573ec7['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 _0x221816 from'../../../message.js';export default class ReopenCommentThreadMessage extends _0x221816{['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(_0x40c43e,_0x16b89b){super(),this['commentThreadId']=_0x40c43e,this['documentId']=_0x16b89b;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId']};}static['fromJSON'](_0x529402){return new ReopenCommentThreadMessage(_0x529402['commentThreadId'],_0x529402['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 _0x2327bd from'../../../message.js';export default class ResolveCommentThreadMessage extends _0x2327bd{['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(_0x3811fa,_0x242746,_0x49cf06,_0x869e32){super(),this['commentThreadId']=_0x3811fa,this['documentId']=_0x242746,this['resolvedBy']=_0x49cf06,this['resolvedAt']=_0x869e32?new Date(_0x869e32):void 0x0;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']?.['toISOString']()};}static['fromJSON'](_0x491b7d){return new ResolveCommentThreadMessage(_0x491b7d['commentThreadId'],_0x491b7d['documentId'],_0x491b7d['resolvedBy'],_0x491b7d['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 _0x5e453e from'../../../message.js';export default class UpdateCommentThreadMessage extends _0x5e453e{['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(_0x4d4234,_0x18459a,_0x20342b,_0x131090=null,_0x381fc7=null){super(),this['commentThreadId']=_0x4d4234,this['documentId']=_0x18459a,this['context']=_0x20342b,this['attributes']=_0x131090,this['unlinkedAt']=_0x381fc7?new Date(_0x381fc7):'';}['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'](_0x29cf90){return new UpdateCommentThreadMessage(_0x29cf90['commentThreadId'],_0x29cf90['documentId'],_0x29cf90['context']?JSON['parse'](_0x29cf90['context']):_0x29cf90['context'],_0x29cf90['attributes']?JSON['parse'](_0x29cf90['attributes']):null,_0x29cf90['unlinkedAt']?new Date(_0x29cf90['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 _0x5843eb from'./../../message.js';export default class ConnectMessage extends _0x5843eb{['documentId'];static ['TYPE']='92';static ['READABLE_TYPE_NAME']='connectToComment';static ['DESCRIPTOR_NAME']='CommentsV2ConnectMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(_0x1d3d1b){super(),this['documentId']=_0x1d3d1b;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0xc24d0e){return new ConnectMessage(_0xc24d0e['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 _0x5b85cb from'./../../message.js';export default class GetCommentThreadMessage extends _0x5b85cb{['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(_0x201966,_0x2f4bc3){super(),this['commentThreadId']=_0x201966,this['documentId']=_0x2f4bc3;}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'documentId':this['documentId']};}static['fromJSON'](_0x1a36de){return new GetCommentThreadMessage(_0x1a36de['commentThreadId'],_0x1a36de['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 _0x5e2d45 from'./../../message.js';export default class GetDocumentThreadsMessage extends _0x5e2d45{['documentId'];static ['TYPE']='94';static ['READABLE_TYPE_NAME']='getDocumentThreads';static ['DESCRIPTOR_NAME']='CommentsV2GetDocumentThreadsMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(_0xa445e0){super(),this['documentId']=_0xa445e0;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x254aa6){return new GetDocumentThreadsMessage(_0x254aa6['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 _0x170232 from'./../../message.js';export default class RemoveCommentMessage extends _0x170232{['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(_0x360575,_0xc63ad9,_0x14c3d8){super(),this['documentId']=_0x360575,this['commentThreadId']=_0xc63ad9,this['commentId']=_0x14c3d8;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'commentId':this['commentId']};}static['fromJSON'](_0x16a251){return new RemoveCommentMessage(_0x16a251['documentId'],_0x16a251['commentThreadId'],_0x16a251['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 _0x2ea06e from'./../../message.js';export default class RemoveCommentThreadMessage extends _0x2ea06e{['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(_0x3a9aee,_0x47485d){super(),this['documentId']=_0x3a9aee,this['commentThreadId']=_0x47485d;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId']};}static['fromJSON'](_0x3e0d54){return new RemoveCommentThreadMessage(_0x3e0d54['documentId'],_0x3e0d54['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 _0xe58d1f from'./../../message.js';import _0x2a9fe5 from'../descriptors/commentsthreaddescriptor.js';export default class UpdateCommentMessage extends _0xe58d1f{['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(_0x34fda9,_0x51eaa0,_0x4db945,_0x37f94d,_0x5b5250=null,_0x152184=!0x1,_0x358cf0){super(),this['documentId']=_0x34fda9,this['commentThreadId']=_0x51eaa0,this['commentId']=_0x4db945,this['content']=_0x37f94d,this['attributes']=_0x5b5250,this['isAttributesUpdated']=_0x152184,this['commentThread']=_0x358cf0;}['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']?_0x2a9fe5['toJSON'](this['commentThread']):void 0x0};}static['fromJSON'](_0x242cd4){return new UpdateCommentMessage(_0x242cd4['documentId'],_0x242cd4['commentThreadId'],_0x242cd4['commentId'],_0x242cd4['content'],_0x242cd4['attributes']?JSON['parse'](_0x242cd4['attributes']):null,_0x242cd4['isAttributesUpdated'],_0x242cd4['commentThread']?_0x2a9fe5['fromJSON'](_0x242cd4['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 _0x5e5b97 from'./../../message.js';export default class AddCommentResponse extends _0x5e5b97{['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(_0x5cd971,_0x99d9f4,_0xaf5458){super(),this['commentThreadId']=_0x5cd971,this['commentId']=_0x99d9f4,this['createdAt']=new Date(_0xaf5458);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'commentId':this['commentId'],'createdAt':this['createdAt']['toISOString']()};}static['fromJSON'](_0x10003f){return new AddCommentResponse(_0x10003f['commentThreadId'],_0x10003f['commentId'],_0x10003f['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 _0x4f9883 from'./../../../message.js';import _0x538fef from'../../descriptors/commentthreadaddedcomment.js';export default class AddCommentThreadResponse extends _0x4f9883{['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(_0x13ea02,_0x1f12f0,_0x16237b=[]){super(),this['commentThreadId']=_0x13ea02,this['comments']=_0x16237b,this['createdAt']=new Date(_0x1f12f0);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'createdAt':this['createdAt']['toISOString'](),'comments':this['comments']['map'](_0x840a6b=>_0x538fef['toJSON'](_0x840a6b))};}static['fromJSON'](_0xd2807d){return new AddCommentThreadResponse(_0xd2807d['commentThreadId'],_0xd2807d['createdAt'],_0xd2807d['comments']['map'](_0x55a178=>_0x538fef['fromJSON'](_0x55a178)));}}
@@ -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 _0xf667eb from'./../../../message.js';export default class ResolveCommentThreadResponse extends _0xf667eb{['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(_0x13f145,_0xb06e49,_0xc5ab5f,_0x1348b8){super(),this['commentThreadId']=_0x13f145,this['documentId']=_0xb06e49,this['resolvedBy']=_0xc5ab5f,this['resolvedAt']=new Date(_0x1348b8);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'documentId':this['documentId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']['toISOString']()};}static['fromJSON'](_0x186519){return new ResolveCommentThreadResponse(_0x186519['commentThreadId'],_0x186519['documentId'],_0x186519['resolvedBy'],_0x186519['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 _0x2e1b78 from'./../../message.js';import _0x331ed1 from'../descriptors/commentsthreaddescriptor.js';export default class ConnectResponse extends _0x2e1b78{['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(_0xff3706,_0x335bab,_0x4b815f){super(),this['channel']=_0xff3706,this['_threads']=_0x335bab,this['_threadsV2']=_0x4b815f,this['threads']=_0x4b815f?.['length']?_0x4b815f:_0x335bab;}['toJSON'](){return{'channel':this['channel'],'threads':this['_threads']?.['map'](_0x524140=>JSON['stringify'](_0x524140)),'threadsV2':this['_threadsV2']?.['map'](_0x331ed1['toJSON'])};}static['fromJSON'](_0x4c06b0){return new ConnectResponse(_0x4c06b0['channel'],_0x4c06b0['threads']?.['map'](_0x20b3bf=>JSON['parse'](_0x20b3bf)),_0x4c06b0['threadsV2']?.['map'](_0x331ed1['fromJSON']));}}