@ckeditor/ckeditor-cloud-services-collaboration 53.0.0 → 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 +1 -1
  4. package/src/ckeditorcloudserviceserror.js +1 -1
  5. package/src/ckeditorcloudservicesservererror.js +1 -1
  6. package/src/collaborativeeditingservice/collaborativeeditingservice.js +2 -2
  7. package/src/collaborativeeditingservice/descriptors/operationmetadatadescriptor.js +1 -1
  8. package/src/collaborativeeditingservice/helpers/operationmetadatahelpers.js +1 -1
  9. package/src/collaborativeeditingservice/messages/collaborativeeditingconnectmessage.js +1 -1
  10. package/src/collaborativeeditingservice/messages/collaborativeeditingreconnectmessage.js +1 -1
  11. package/src/collaborativeeditingservice/messages/collaborativeeditingupdatemessage.js +1 -1
  12. package/src/collaborativeeditingservice/messages/getdocumentdetailsmessage.js +1 -1
  13. package/src/collaborativeeditingservice/responses/collaborativeeditingconnectresponse.js +1 -1
  14. package/src/collaborativeeditingservice/responses/collaborativeeditingresponse.js +1 -1
  15. package/src/collaborativeeditingservice/responses/getdocumentdetailsresponse.js +1 -1
  16. package/src/comments-v2/commentsservice.js +2 -2
  17. package/src/comments-v2/descriptors/commentdescriptor.js +1 -1
  18. package/src/comments-v2/descriptors/commentsthreaddescriptor.js +1 -1
  19. package/src/comments-v2/descriptors/commentthreadaddedcomment.js +1 -1
  20. package/src/comments-v2/messages/addcommentmessage.js +1 -1
  21. package/src/comments-v2/messages/comment-threads/addcommentthreadmessage.js +1 -1
  22. package/src/comments-v2/messages/comment-threads/reopencommentthreadmessage.js +1 -1
  23. package/src/comments-v2/messages/comment-threads/resolvecommentthreadmessage.js +1 -1
  24. package/src/comments-v2/messages/comment-threads/updatecommentthreadmessage.js +1 -1
  25. package/src/comments-v2/messages/connectmessage.js +1 -1
  26. package/src/comments-v2/messages/getcommentthreadmessage.js +1 -1
  27. package/src/comments-v2/messages/getdocumentthreadsmessage.js +1 -1
  28. package/src/comments-v2/messages/removecommentmessage.js +1 -1
  29. package/src/comments-v2/messages/removecommentthreadmessage.js +1 -1
  30. package/src/comments-v2/messages/updatecommentmessage.js +1 -1
  31. package/src/comments-v2/responses/addcommentresponse.js +1 -1
  32. package/src/comments-v2/responses/comment-threads/addcommentthreadresponse.js +1 -1
  33. package/src/comments-v2/responses/comment-threads/resolvecommentthreadresponse.js +1 -1
  34. package/src/comments-v2/responses/connectresponse.js +1 -1
  35. package/src/comments-v2/responses/getcommentthreadresponse.js +1 -1
  36. package/src/comments-v2/responses/getdocumentthreadsresponse.js +1 -1
  37. package/src/compiledmessages.js +2 -2
  38. package/src/descriptor.js +1 -1
  39. package/src/descriptors/keyvaluedescriptor.js +1 -1
  40. package/src/editor/editorservice.js +2 -2
  41. package/src/editor/messages/iseditorbundleuploadedmessage.js +1 -1
  42. package/src/editor/responses/iseditorbundleuploadedresponse.js +1 -1
  43. package/src/errors/ServiceNotConnectedError.js +1 -1
  44. package/src/index.js +1 -1
  45. package/src/message.js +1 -1
  46. package/src/messagescompressor.js +1 -1
  47. package/src/messagesmapper.js +1 -1
  48. package/src/revision-history/descriptors/revisiondescriptor.js +1 -1
  49. package/src/revision-history/messages/revisionhistoryconnectmessage.js +1 -1
  50. package/src/revision-history/messages/revisionhistorygetrevisionmessage.js +1 -1
  51. package/src/revision-history/messages/revisionhistoryreconnectmessage.js +1 -1
  52. package/src/revision-history/messages/revisionhistoryupdaterevisionsmessage.js +1 -1
  53. package/src/revision-history/responses/revisionhistoryconnectresponse.js +1 -1
  54. package/src/revision-history/responses/revisionhistorygetrevisionresponse.js +1 -1
  55. package/src/revision-history/responses/revisionhistoryupdaterevisionsresponse.js +1 -1
  56. package/src/revision-history/revisionhistoryservice.js +2 -2
  57. package/src/sessions/descriptors/sessiondescriptor.js +1 -1
  58. package/src/sessions/messages/sessionsconnectmessage.js +1 -1
  59. package/src/sessions/messages/socketconnectmessage.js +1 -1
  60. package/src/sessions/messages/socketdisconnectmessage.js +1 -1
  61. package/src/sessions/responses/sessionsconnectresponse.js +1 -1
  62. package/src/sessions/sessioncollection.js +1 -1
  63. package/src/sessions/sessions.js +1 -1
  64. package/src/track-changes/descriptors/suggestiondescriptor.js +1 -1
  65. package/src/track-changes/messages/addsuggestionmessage.js +1 -1
  66. package/src/track-changes/messages/batchUpdateSuggestionsStateMessage.js +1 -1
  67. package/src/track-changes/messages/connectmessage.js +1 -1
  68. package/src/track-changes/messages/getallsuggestionsmessage.js +1 -1
  69. package/src/track-changes/messages/getsuggestionmessage.js +1 -1
  70. package/src/track-changes/messages/updatesuggestionmessage.js +1 -1
  71. package/src/track-changes/responses/addsuggestionresponse.js +1 -1
  72. package/src/track-changes/responses/connectresponse.js +1 -1
  73. package/src/track-changes/responses/getallsuggestionsresponse.js +1 -1
  74. package/src/track-changes/responses/getsuggestionresponse.js +1 -1
  75. package/src/track-changes/trackchangesservice.js +2 -2
  76. package/src/users/descriptors/userdescriptor.js +1 -1
  77. package/src/users/messages/getmanyusersmessage.js +1 -1
  78. package/src/users/messages/getusermessage.js +1 -1
  79. package/src/users/responses/getmanyusersresponse.js +1 -1
  80. package/src/users/responses/getuserresponse.js +1 -1
  81. package/src/users/user.js +1 -1
  82. package/src/version.d.ts +1 -1
  83. package/src/version.js +1 -1
  84. package/src/websocketgateway/channel.js +2 -2
  85. package/src/websocketgateway/messages/channelmessage.js +1 -1
  86. package/src/websocketgateway/parser/packetparser.js +1 -1
  87. package/src/websocketgateway/parser/packets/bytesbytespacketdatamessage.js +2 -2
  88. package/src/websocketgateway/parser/packets/numberbytespacketdatamessage.js +2 -2
  89. package/src/websocketgateway/parser/packets/numbernumberpacketdatamessag.js +2 -2
  90. package/src/websocketgateway/parser/packets/numberobjectpacketdatamessage.js +2 -2
  91. package/src/websocketgateway/parser/packets/numberstringpacketdatamessag.js +2 -2
  92. package/src/websocketgateway/parser/packets/objectbufferpacketdatamessage.js +2 -2
  93. package/src/websocketgateway/parser/packets/objectobjectpacketdatamessage.js +2 -2
  94. package/src/websocketgateway/parser/packets/packagedatamessage.js +1 -1
  95. package/src/websocketgateway/parser/packets/packetmessage.js +2 -2
  96. package/src/websocketgateway/parser/packets/packetoptionsmessage.js +1 -1
  97. package/src/websocketgateway/parser/packets/stringbytespacketdatamessage.js +2 -2
  98. package/src/websocketgateway/parser/packets/stringnumberpacketdatamessage.js +2 -2
  99. package/src/websocketgateway/parser/packets/stringobjectpacketdatamessage.js +2 -2
  100. package/src/websocketgateway/parser/packets/stringstringpacketdatamessage.js +2 -2
  101. package/src/websocketgateway/parser/parser.js +2 -2
  102. package/src/websocketgateway/parser/parserutils.js +1 -1
  103. package/src/websocketgateway/requestsmanager.js +1 -1
  104. package/src/websocketgateway/websocketgateway.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor-cloud-services-collaboration",
3
- "version": "53.0.0",
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",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export default class CKEditorCloudServicesError extends Error{['context'];['code'];['data'];constructor(_0x224dd1,_0x2b0c9c,_0x19b391=null,_0x5e4ff4={}){super('cloud-services-internal-error:\x20'+_0x224dd1),this['context']=_0x2b0c9c,this['code']=_0x19b391,this['data']=_0x5e4ff4,this['name']='CKEditorError';}static['fromPublicError'](_0x147ba9){return new CKEditorCloudServicesError(function(_0x4450de){let _0x2d839c='cloud-services-error:\x20'+_0x4450de['message'];return _0x4450de['data']&&(_0x2d839c+='\x0aError\x20data:\x20'+JSON['stringify'](_0x4450de['data'])),_0x4450de['explanation']&&(_0x2d839c+='\x0aExplanation:\x20'+_0x4450de['explanation']),_0x4450de['action']&&(_0x2d839c+='\x0aAction:\x20'+_0x4450de['action']),_0x4450de['traceId']&&(_0x2d839c+='\x0aTraceId:\x20'+_0x4450de['traceId']),_0x4450de['code']&&(_0x2d839c+='\x0aCode:\x20'+_0x4450de['code']),_0x2d839c;}(_0x147ba9),_0x147ba9);}}
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(_0x1ff876,_0xd32753){super(),this['name']='CKEditorCloudServicesServerError',this['stack']=void 0x0,this['message']=_0x1ff876,this['code']=_0xd32753['code'],this['traceId']=_0xd32753['traceId'],this['data']=_0xd32753['data'];}static['fromPublicError'](_0x40ea10){return new CKEditorCloudServicesServerError(function(_0xc66bab){let _0x2b0391='cloud-services-server-error:\x20'+_0xc66bab['message'];return _0xc66bab['explanation']&&(_0x2b0391+='\x0aExplanation:\x20'+_0xc66bab['explanation']),_0xc66bab['action']&&(_0x2b0391+='\x0aAction:\x20'+_0xc66bab['action']),_0xc66bab['traceId']&&(_0x2b0391+='\x0aTraceId:\x20'+_0xc66bab['traceId']),_0xc66bab['code']&&(_0x2b0391+='\x0aCode:\x20'+_0xc66bab['code']),_0x2b0391;}(_0x40ea10),_0x40ea10);}}
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 _0x31becd}from'uuid';import{EmitterMixin}from'ckeditor5/src/utils.js';import _0x150a4a from'./../messagescompressor.js';import _0x47b296 from'./../sessions/sessions.js';import _0x4c60cd from'./messages/collaborativeeditingconnectmessage.js';import _0xf62b75 from'./messages/collaborativeeditingupdatemessage.js';import _0x4b40ea from'./messages/collaborativeeditingreconnectmessage.js';import _0x599836 from'./responses/collaborativeeditingresponse.js';import _0x1ba333 from'./responses/collaborativeeditingconnectresponse.js';import _0x1a0822 from'./../websocketgateway/websocketgateway.js';import _0x2f15e5 from'../ckeditorcloudserviceserror.js';import _0xda9c67 from'../errors/ServiceNotConnectedError.js';import _0x568761 from'./responses/getdocumentdetailsresponse.js';import _0x3d7df3 from'./messages/getdocumentdetailsmessage.js';export const _SERVICE=0x1;export default class extends/* #__PURE__ -- @preserve */
24
- EmitterMixin(){static ['_SERVICE']=0x1;['_bundleVersion'];['_id'];['_isConnected'];['_wsGateway'];['_channel'];['_connectedSessions'];constructor(_0x2784e0,_0x564719){if(super(),!_0x2784e0)throw new TypeError('Param\x20\x22bundleVersion\x22\x20must\x20be\x20provided.');this['_id']=_0x564719??_0x31becd(),this['_isConnected']=!0x1,this['_bundleVersion']=_0x2784e0;}['getId'](){return this['_id'];}['isConnected'](){return this['_isConnected'];}['connect'](_0x17123b,_0x19ce9a={'buffers':[],'types':[]},_0x50fe79){const _0xed8e65=new _0x4c60cd(this['getId'](),_0x19ce9a['buffers'],_0x19ce9a['types'],this['_bundleVersion'],_0x50fe79);return this['_connect'](_0x17123b,_0xed8e65);}['reconnect'](_0x4093ab,_0xcec810){if(this['isConnected']())throw new _0x2f15e5('Cannot\x20reconnect\x20to\x20already\x20connected\x20service.',_0x4093ab);return this['_connect'](_0x4093ab,new _0x4b40ea(this['getId'](),_0xcec810,this['_bundleVersion']));}['disconnect'](){this['_isConnected']&&(this['_isConnected']=!0x1,this['_wsGateway']&&(this['stopListening'](this['_wsGateway']),this['_wsGateway']=void 0x0),this['_channel']&&(this['stopListening'](this['_channel']),this['_channel']=void 0x0),this['_connectedSessions']&&(this['_connectedSessions']['disconnect'](),this['_connectedSessions']=void 0x0),this['fire']('disconnected'),this['stopListening']());}async['getDocumentDetails'](){const _0x459ed9=new _0x3d7df3(this['getId']());if(!this['_wsGateway'])throw new _0xda9c67('Collaborative\x20Editing',this);const _0x1cb4ff=await this['_wsGateway']['_sendRequest'](0x1,_0x3d7df3['TYPE'],_0x150a4a['encode'](_0x459ed9));return _0x150a4a['decode'](_0x1cb4ff,_0x568761);}async['sendOperations'](_0x253c69,_0x20842,_0x567c6c){if(!_0x253c69?.['types']?.['length'])throw new _0x2f15e5('Cannot\x20send\x20empty\x20update.',this['_wsGateway']);const _0x1eecc8='number'==typeof _0x20842?_0x20842:parseInt(_0x20842);if(!Number['isInteger'](_0x1eecc8)||_0x1eecc8<0x0)throw new _0x2f15e5('Base\x20version\x20not\x20provided.',this['_wsGateway']);const _0x464980=new _0xf62b75(this['getId'](),_0x253c69['buffers'],_0x253c69['types'],_0x1eecc8,[],_0x567c6c);if(!this['_wsGateway']||!this['_isConnected'])throw new _0xda9c67('Collaborative\x20Editing',this);const _0x18c307=await this['_wsGateway']['_sendRequest'](0x1,_0xf62b75['TYPE'],_0x150a4a['encode'](_0x464980));return _0x150a4a['decode'](_0x18c307,_0x599836);}async['getConnectedSessions'](){if(!this['_isConnected'])throw new _0xda9c67('Collaborative\x20Editing',this);return this['_connectedSessions']||(this['_connectedSessions']=await _0x47b296['getConnectedSessions'](this['_wsGateway'],this['_id'],0x1)),this['_connectedSessions'];}static['getConnectedSessions'](_0x389f98,_0x51bf3e){return _0x47b296['getConnectedSessions'](_0x389f98,_0x51bf3e,0x1);}async['_connect'](_0x4efed6,_0x8224e){if(this['isConnected']())return;if(_0x4efed6['state']!==_0x1a0822['STATE_CONNECTED'])throw new _0x2f15e5('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x4efed6);this['_wsGateway']=_0x4efed6,this['stopListening'](_0x4efed6,'change:state');const _0x4ab81e=await _0x4efed6['_sendRequest'](0x1,_0x8224e['constructor']['TYPE'],_0x150a4a['encode'](_0x8224e)),_0x1d2fc3=_0x150a4a['decode'](_0x4ab81e,_0x1ba333);return this['listenTo'](_0x4efed6,'change:state',(_0x2a6c0a,_0x4e3a08,_0x1bfd60)=>this['_onWsGatewayStateChange'](_0x1bfd60),{'priority':_0x1a0822['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0x4efed6,_0x1d2fc3['channel']),this['_isConnected']=!0x0,this['fire']('connected'),_0x1d2fc3;}['_connectToChannel'](_0x57e588,_0x57cebb){this['_channel']=_0x57e588['_getChannel'](0x1,_0x57cebb),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0xf62b75['TYPE']),(_0x27c1b5,_0xb73c66)=>{const _0x4b5100=_0x150a4a['decode'](_0xb73c66,_0xf62b75);this['fire']('operationsReceived',_0x4b5100['baseVersion'],_0x4b5100['data'],_0x4b5100['metadata']);});}['_onWsGatewayStateChange'](_0x1154a6){_0x1154a6===_0x1a0822['STATE_DISCONNECTED']&&this['disconnect']();}}
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 _0x459765 from'./../../descriptor.js';export default class OperationMetadataDescriptor extends _0x459765{static ['DESCRIPTOR_NAME']='OperationMetadataDescriptor';static ['DESCRIPTOR']={'fields':{'userId':{'type':'string','id':0x1},'type':{'type':'string','id':0x2},'createdAt':{'type':'string','id':0x3}}};static['toJSON']({createdAt:_0x511f8a,..._0x104a75}){const _0x5d4b35={..._0x104a75};return _0x511f8a?.['toISOString']&&(_0x5d4b35['createdAt']=_0x511f8a['toISOString']()),_0x5d4b35;}static['fromJSON']({createdAt:_0x3c07fc,..._0x253d9a}){const _0x5e333d={..._0x253d9a};return _0x3c07fc&&(_0x5e333d['createdAt']=new Date(_0x3c07fc)),_0x5e333d;}}
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'](_0x2707c0,_0x310c4e){if(!_0x2707c0?.['length']||!_0x310c4e?.['length'])return[];const _0x1c2d60=[];let _0x400e19=0x0;for(const _0x593fd7 of _0x2707c0)if(0x0!==_0x593fd7){if(!_0x310c4e[_0x400e19])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');_0x1c2d60['push'](_0x310c4e[_0x400e19]),_0x400e19++;}else _0x1c2d60['push'](_0x1c2d60[_0x1c2d60['length']-0x1]);return _0x1c2d60;}static['removeUnnecessaryMetadata'](_0x91a9e4,_0x1914a6){if(!_0x91a9e4?.['length']||!_0x1914a6?.['length'])return[];const _0x4f7109=[];for(let _0x5650bc=0x0;_0x5650bc<_0x91a9e4['length'];_0x5650bc++)if(0x0!==_0x91a9e4[_0x5650bc]){if(!_0x1914a6[_0x5650bc])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');_0x4f7109['push'](_0x1914a6[_0x5650bc]);}return _0x4f7109;}}
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 _0x215b8f from'./../../message.js';export default class CollaborativeEditingConnectMessage extends _0x215b8f{['id'];['buffers'];['types'];['bundleVersion'];['lastOperationId'];static ['TYPE']='11';static ['READABLE_TYPE_NAME']='connectToDocument';static ['DESCRIPTOR_NAME']='CollaborativeEditingConnectMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'bundleVersion':{'type':'string','id':0x2},'buffers':{'rule':'repeated','type':'bytes','id':0x3},'types':{'rule':'repeated','type':'uint32','id':0x4},'lastOperationId':{'type':'string','id':0x5}}};constructor(_0xee072b,_0x392344,_0x2d4e8c,_0x5d9a6b,_0x20b11c=''){super(),this['id']=_0xee072b,this['buffers']=_0x392344,this['types']=_0x2d4e8c,this['bundleVersion']=_0x5d9a6b,this['lastOperationId']=_0x20b11c;}['toJSON'](){return{'id':this['id'],'buffers':this['buffers'],'types':this['types'],'bundleVersion':this['bundleVersion'],'lastOperationId':this['lastOperationId']};}static['fromJSON'](_0xef211){return new CollaborativeEditingConnectMessage(_0xef211['id'],_0xef211['buffers'],_0xef211['types'],_0xef211['bundleVersion'],_0xef211['lastOperationId']);}}
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 _0x493f86 from'./../../message.js';export default class CollaborativeEditingReconnectMessage extends _0x493f86{['id'];['lastKnowVersion'];['bundleVersion'];static ['TYPE']='12';static ['READABLE_TYPE_NAME']='reconnectToDocument';static ['DESCRIPTOR_NAME']='CollaborativeEditingReconnectMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'bundleVersion':{'type':'string','id':0x2},'lastKnowVersion':{'type':'uint32','id':0x3}}};constructor(_0x113a02,_0x36c0ff,_0x5d8c70){super(),this['id']=_0x113a02,this['lastKnowVersion']=_0x36c0ff,this['bundleVersion']=_0x5d8c70;}['toJSON'](){return{'id':this['id'],'bundleVersion':this['bundleVersion'],'lastKnowVersion':this['lastKnowVersion']};}static['fromJSON'](_0x586a8a){return new CollaborativeEditingReconnectMessage(_0x586a8a['id'],_0x586a8a['lastKnowVersion'],_0x586a8a['bundleVersion']);}}
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 _0x1fc1e8 from'./../../message.js';import _0x55f14f from'./../helpers/operationmetadatahelpers.js';import _0x4af127 from'../descriptors/operationmetadatadescriptor.js';export default class CollaborativeEditingUpdateMessage extends _0x1fc1e8{['id'];['buffers'];['types'];['baseVersion'];['metadata'];['lastOperationId'];static ['TYPE']='13';static ['READABLE_TYPE_NAME']='updateDocument';static ['DESCRIPTOR_NAME']='CollaborativeEditingUpdateMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'baseVersion':{'type':'uint32','id':0x2},'buffers':{'rule':'repeated','type':'bytes','id':0x3},'types':{'rule':'repeated','type':'uint32','id':0x4},'metadata':{'rule':'repeated','type':'OperationMetadataDescriptor','id':0x6},'lastOperationId':{'type':'string','id':0x7}}};constructor(_0x1c40b7,_0x235f6e,_0x2f976b,_0x3445ce,_0x1cfd83=[],_0x2d8904=''){super(),this['id']=_0x1c40b7,this['buffers']=_0x235f6e,this['types']=_0x2f976b,this['baseVersion']=_0x3445ce,this['metadata']=_0x1cfd83,this['lastOperationId']=_0x2d8904;}get['data'](){return{'buffers':this['buffers'],'types':this['types'],'baseVersion':this['baseVersion'],'lastOperationId':this['lastOperationId']};}['toJSON'](){return{'id':this['id'],'buffers':this['buffers'],'types':this['types'],'baseVersion':this['baseVersion'],'metadata':_0x55f14f['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](_0x4af127['toJSON']),'lastOperationId':this['lastOperationId']};}static['fromJSON'](_0x24f516){return new CollaborativeEditingUpdateMessage(_0x24f516['id'],_0x24f516['buffers'],_0x24f516['types'],_0x24f516['baseVersion'],_0x55f14f['prepareMetadataForOperations'](_0x24f516['types'],_0x24f516['metadata'])['map'](_0x4af127['fromJSON']),_0x24f516['lastOperationId']);}}
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 _0x117c93 from'../../message.js';export default class GetDocumentDetailsMessage extends _0x117c93{['documentId'];static ['TYPE']='14';static ['READABLE_TYPE_NAME']='getDocumentDetails';static ['DESCRIPTOR_NAME']='GetDocumentDetailsMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1},'environmentId':{'type':'string','id':0x2}}};constructor(_0x253740){super(),this['documentId']=_0x253740;}get['data'](){return{'documentId':this['documentId']};}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x25cdff){return new GetDocumentDetailsMessage(_0x25cdff['documentId']);}}
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 _0x353f81 from'./../../message.js';import _0x4e620c from'./../helpers/operationmetadatahelpers.js';import _0x139700 from'../descriptors/operationmetadatadescriptor.js';export default class CollaborativeEditingConnectResponse extends _0x353f81{['channel'];['version'];['buffers'];['types'];['offset'];['metadata'];['initData'];['sessionId'];['lastOperationId'];['sessionCreatedAt'];static ['DESCRIPTOR_NAME']='CollaborativeEditingConnectResponse';static ['DESCRIPTOR']=((()=>({'fields':{'channel':{'type':'string','id':0x1},'offset':{'type':'uint32','id':0x2},'version':{'type':'uint32','id':0x3},'buffers':{'rule':'repeated','type':'bytes','id':0x4},'types':{'rule':'repeated','type':'uint32','id':0x5},'metadata':{'rule':'repeated','type':_0x139700['DESCRIPTOR_NAME'],'id':0x7},'initData':{'type':'string','id':0x8},'isInitialized':{'type':'bool','id':0x9},'sessionId':{'type':'string','id':0xa},'lastOperationId':{'type':'string','id':0xb},'sessionCreatedAt':{'type':'string','id':0xc}}}))());constructor(_0x37cee7,_0x77c00c,_0x29a9b9=[],_0x6e1e0=[],_0x291006=0x0,_0x13abcf=[],_0x9c05f3=null,_0x4b64b6='',_0x5b7f24='',_0x108de6=null){super(),this['channel']=_0x37cee7,this['version']=_0x77c00c,this['buffers']=_0x29a9b9,this['types']=_0x6e1e0,this['offset']=_0x291006,this['metadata']=_0x13abcf,this['initData']=_0x9c05f3,this['sessionId']=_0x4b64b6,this['lastOperationId']=_0x5b7f24,this['sessionCreatedAt']=_0x108de6;}get['data'](){return{'buffers':this['buffers'],'types':this['types'],'baseVersion':this['version']-this['types']['length'],'lastOperationId':this['lastOperationId'],'sessionCreatedAt':this['sessionCreatedAt']};}get['wereChangesApplied'](){return!this['types']?.['length']&&null===this['initData'];}['toJSON'](){return{'channel':this['channel'],'version':this['version'],'sessionId':this['sessionId'],'buffers':this['buffers'],'types':this['types'],'offset':this['offset'],'metadata':_0x4e620c['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](_0x139700['toJSON']),'initData':this['initData']??'','isInitialized':'string'==typeof this['initData'],'lastOperationId':this['lastOperationId'],'sessionCreatedAt':this['sessionCreatedAt']?this['sessionCreatedAt']['toISOString']():null};}static['create'](_0x4ef256){return new CollaborativeEditingConnectResponse(_0x4ef256['channel'],_0x4ef256['version'],_0x4ef256['buffers'],_0x4ef256['types'],_0x4ef256['offset'],_0x4ef256['metadata'],_0x4ef256['initData'],_0x4ef256['sessionId'],_0x4ef256['lastOperationId'],_0x4ef256['sessionCreatedAt']);}static['fromJSON'](_0x360e45){let _0x78669b=null;return!0x0===_0x360e45['isInitialized']?_0x78669b=_0x360e45['initData']??'':'boolean'!=typeof _0x360e45['isInitialized']&&_0x360e45['initData']&&(_0x78669b=_0x360e45['initData']),CollaborativeEditingConnectResponse['create']({'channel':_0x360e45['channel'],'version':_0x360e45['version'],'buffers':_0x360e45['buffers'],'types':_0x360e45['types'],'offset':_0x360e45['offset'],'metadata':_0x4e620c['prepareMetadataForOperations'](_0x360e45['types'],_0x360e45['metadata'])['map'](_0x139700['fromJSON']),'initData':_0x78669b,'sessionId':_0x360e45['sessionId'],'lastOperationId':_0x360e45['lastOperationId'],'sessionCreatedAt':_0x360e45['sessionCreatedAt']?new Date(_0x360e45['sessionCreatedAt']):null});}}
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 _0xd699ca from'./../../message.js';import _0x2cfce5 from'./../helpers/operationmetadatahelpers.js';import _0x2c309d from'../descriptors/operationmetadatadescriptor.js';export default class CollaborativeEditingResponse extends _0xd699ca{['version'];['buffers'];['types'];['metadata'];['lastOperationId'];['lastOperationAcceptedAt'];static ['DESCRIPTOR_NAME']='CollaborativeEditingResponse';static ['DESCRIPTOR']={'fields':{'version':{'type':'uint32','id':0x1},'buffers':{'rule':'repeated','type':'bytes','id':0x2},'types':{'rule':'repeated','type':'uint32','id':0x3},'metadata':{'rule':'repeated','type':'OperationMetadataDescriptor','id':0x5},'lastOperationId':{'type':'string','id':0x6},'lastOperationAcceptedAt':{'type':'string','id':0x7}}};constructor(_0x41bd63,_0x977dee=[],_0x5f3195=[],_0x53117a=[],_0x2f7505='',_0x3366ab=null){super(),this['version']=_0x41bd63,this['buffers']=_0x977dee,this['types']=_0x5f3195,this['metadata']=_0x53117a,this['lastOperationId']=_0x2f7505,this['lastOperationAcceptedAt']=_0x3366ab;}get['data'](){return{'buffers':this['buffers'],'types':this['types'],'baseVersion':this['version']-this['types']['length'],'lastOperationId':this['lastOperationId'],'lastOperationAcceptedAt':this['lastOperationAcceptedAt']};}get['wereChangesApplied'](){return!this['types']?.['length'];}['toJSON'](){return{'version':this['version'],'buffers':this['buffers'],'types':this['types'],'metadata':_0x2cfce5['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](_0x2c309d['toJSON']),'lastOperationId':this['lastOperationId'],'lastOperationAcceptedAt':this['lastOperationAcceptedAt']instanceof Date?this['lastOperationAcceptedAt']['toISOString']():this['lastOperationAcceptedAt']};}static['fromJSON'](_0x406170){return new CollaborativeEditingResponse(_0x406170['version'],_0x406170['buffers'],_0x406170['types'],_0x2cfce5['prepareMetadataForOperations'](_0x406170['types'],_0x406170['metadata'])['map'](_0x2c309d['fromJSON']),_0x406170['lastOperationId'],_0x406170['lastOperationAcceptedAt']?new Date(_0x406170['lastOperationAcceptedAt']):null);}static['create'](_0x5c27e8){return new CollaborativeEditingResponse(_0x5c27e8['version'],_0x5c27e8['buffers'],_0x5c27e8['types'],_0x5c27e8['metadata'],_0x5c27e8['lastOperationId'],_0x5c27e8['lastOperationAcceptedAt']?new Date(_0x5c27e8['lastOperationAcceptedAt']):null);}}
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 _0x383701 from'./../../message.js';export default class GetDocumentDetailsResponse extends _0x383701{['lastDocumentSession'];['currentDocumentSession'];static ['DESCRIPTOR_NAME']='GetDocumentDetailsResponse';static ['DESCRIPTOR']={'fields':{'lastDocumentSessionId':{'type':'string','id':0x1},'lastDocumentSessionOperationId':{'type':'string','id':0x2},'currentDocumentSessionId':{'type':'string','id':0x3},'currentDocumentSessionVersion':{'type':'uint32','id':0x4},'currentDocumentSessionOperationId':{'type':'string','id':0x5}}};constructor(_0x5b0904,_0x3043e9){super(),this['lastDocumentSession']=_0x5b0904,this['currentDocumentSession']=_0x3043e9;}get['data'](){return{'lastDocumentSessionId':this['lastDocumentSession']?.['id'],'lastDocumentSessionOperationId':this['lastDocumentSession']?.['lastOperationId'],'currentDocumentSessionId':this['currentDocumentSession']?.['id'],'currentDocumentSessionVersion':this['currentDocumentSession']?.['version'],'currentDocumentSessionOperationId':this['currentDocumentSession']?.['lastOperationId']};}['toJSON'](){return{'lastDocumentSessionId':this['lastDocumentSession']?.['id'],'lastDocumentSessionOperationId':this['lastDocumentSession']?.['lastOperationId'],'currentDocumentSessionId':this['currentDocumentSession']?.['id'],'currentDocumentSessionVersion':this['currentDocumentSession']?.['version'],'currentDocumentSessionOperationId':this['currentDocumentSession']?.['lastOperationId']};}static['fromJSON'](_0x33b440){const _0x48c687=_0x33b440['lastDocumentSessionId']?{'id':_0x33b440['lastDocumentSessionId'],'lastOperationId':_0x33b440['lastDocumentSessionOperationId']}:void 0x0,_0x116c22=_0x33b440['currentDocumentSessionId']?{'lastOperationId':_0x33b440['currentDocumentSessionOperationId'],'version':_0x33b440['currentDocumentSessionVersion'],'id':_0x33b440['currentDocumentSessionId']}:void 0x0;return new GetDocumentDetailsResponse(_0x48c687,_0x116c22);}}
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 _0x6941ac from'./../messagescompressor.js';import _0x1a046e from'./messages/addcommentmessage.js';import _0x5c2329 from'./responses/addcommentresponse.js';import _0x53e04d from'./messages/connectmessage.js';import _0x35dafe from'./responses/connectresponse.js';import _0x4a88e4 from'./messages/removecommentmessage.js';import _0x5c38b7 from'./messages/removecommentthreadmessage.js';import _0x507442 from'./messages/updatecommentmessage.js';import _0xe5394e from'./messages/getcommentthreadmessage.js';import _0x2ad195 from'./responses/getcommentthreadresponse.js';import _0x34ea44 from'./messages/getdocumentthreadsmessage.js';import _0x14c2a4 from'./responses/getdocumentthreadsresponse.js';import _0x2a21bf,{WEB_SOCKET_GATEWAY_STATES}from'./../websocketgateway/websocketgateway.js';import _0x526164 from'./../ckeditorcloudserviceserror.js';import _0x5c24f2 from'../sessions/sessions.js';import _0x4656cd from'../errors/ServiceNotConnectedError.js';import _0x4c0398 from'../ckeditorcloudservicesservererror.js';import _0x3f5a6d from'./responses/comment-threads/addcommentthreadresponse.js';import _0x104d72 from'./messages/comment-threads/addcommentthreadmessage.js';import _0x500e6c from'./messages/comment-threads/resolvecommentthreadmessage.js';import _0x362b95 from'./messages/comment-threads/reopencommentthreadmessage.js';import _0x12f964 from'./messages/comment-threads/updatecommentthreadmessage.js';import _0x23c1eb from'./responses/comment-threads/resolvecommentthreadresponse.js';export const _SERVICE=0x9;class CommentsService extends/* #__PURE__ -- @preserve */
24
- EmitterMixin(){['_documentId'];['_isConnected']=!0x1;['_wsGateway'];['_channel'];['_connectedSessions'];static ['_SERVICE']=0x9;constructor(_0x202f2e){super(),this['_documentId']=_0x202f2e;}get['isConnected'](){return this['_isConnected'];}async['connect'](_0x4f18b1){if(this['_isConnected'])return;if(_0x4f18b1['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new _0x526164('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x4f18b1);const _0x49410d=new _0x53e04d(this['_documentId']);this['_wsGateway']=_0x4f18b1,this['stopListening'](_0x4f18b1,'change:state');const _0x43152f=await _0x4f18b1['_sendRequest'](0x9,_0x53e04d['TYPE'],_0x6941ac['encode'](_0x49410d)),{channel:_0x2c81cf,threads:_0x4765b5}=_0x6941ac['decode'](_0x43152f,_0x35dafe);return this['listenTo'](_0x4f18b1,'change:state',(_0x2e9bdf,_0x3b0e08,_0x365047)=>this['_onWsGatewayStateChange'](_0x365047),{'priority':_0x2a21bf['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0x4f18b1,_0x2c81cf),this['_isConnected']=!0x0,this['fire']('connected'),_0x4765b5;}['disconnect'](){this['_isConnected']&&(this['_isConnected']=!0x1,this['_wsGateway']&&(this['stopListening'](this['_wsGateway']),this['_wsGateway']=void 0x0),this['_channel']&&(this['stopListening'](this['_channel']),this['_channel']=void 0x0),this['_connectedSessions']&&(this['_connectedSessions']['disconnect'](),this['_connectedSessions']=void 0x0),this['fire']('disconnected'),this['stopListening']());}async['addComment'](_0x189bc5,_0x451cd6,_0x2d1017,_0x4fddca){const _0x42de31=new _0x1a046e(this['_documentId'],_0x189bc5,_0x2d1017,_0x451cd6,void 0x0,void 0x0,_0x4fddca),_0xba212f=await this['_sendRequest'](_0x1a046e['TYPE'],_0x42de31);return _0x6941ac['decode'](_0xba212f,_0x5c2329);}async['updateComment'](_0xbda724,_0xcce638,_0x497609,_0x249da0){const _0x22c3bc=void 0x0!==_0x249da0,_0x4da251=new _0x507442(this['_documentId'],_0xbda724,_0xcce638,_0x497609,_0x249da0,_0x22c3bc);await this['_sendRequest'](_0x507442['TYPE'],_0x4da251);}async['removeComment'](_0xf369df,_0x452b71){const _0x1327e4=new _0x4a88e4(this['_documentId'],_0xf369df,_0x452b71);await this['_sendRequest'](_0x4a88e4['TYPE'],_0x1327e4);}async['removeCommentThread'](_0x3baf91){const _0x53f7ac=new _0x5c38b7(this['_documentId'],_0x3baf91);await this['_sendRequest'](_0x5c38b7['TYPE'],_0x53f7ac);}async['addCommentThread'](_0x2c9b73){const _0x3bcd81=new _0x104d72(this['_documentId'],_0x2c9b73['commentThreadId'],_0x2c9b73['comments']?.['map'](_0x3da662=>({..._0x3da662,'documentId':this['_documentId'],'commentThreadId':_0x2c9b73['commentThreadId']})),_0x2c9b73['context'],_0x2c9b73['resolvedBy'],_0x2c9b73['createdAt'],_0x2c9b73['resolvedAt'],_0x2c9b73['deletedAt'],_0x2c9b73['attributes']),_0x205259=await this['_sendRequest'](_0x104d72['TYPE'],_0x3bcd81);return _0x6941ac['decode'](_0x205259,_0x3f5a6d);}async['resolveCommentThread'](_0x1195c6){const _0x1cb187=new _0x500e6c(_0x1195c6,this['_documentId']),_0x5dd8b1=await this['_sendRequest'](_0x500e6c['TYPE'],_0x1cb187);return _0x6941ac['decode'](_0x5dd8b1,_0x23c1eb);}async['reopenCommentThread'](_0x4820bf){const _0x3afd27=new _0x362b95(_0x4820bf,this['_documentId']);await this['_sendRequest'](_0x362b95['TYPE'],_0x3afd27);}async['updateCommentThread'](_0x172f05){const _0x5c39a5=new _0x12f964(_0x172f05['commentThreadId'],this['_documentId'],_0x172f05['context'],_0x172f05['attributes'],_0x172f05['unlinkedAt']);await this['_sendRequest'](_0x12f964['TYPE'],_0x5c39a5);}async['getCommentThread'](_0x5b4b6a,_0x2bcc5d=0x1){const _0x41dc0c=new _0xe5394e(_0x5b4b6a,this['_documentId']);try{const _0x2bb468=await this['_sendRequest'](_0xe5394e['TYPE'],_0x41dc0c),_0xc96684=_0x6941ac['decode'](_0x2bb468,_0x2ad195);return{'commentThreadId':_0xc96684['commentThreadId'],'comments':_0xc96684['comments'],'attributes':_0xc96684['attributes'],'context':_0xc96684['context'],'resolvedAt':_0xc96684['resolvedAt'],'resolvedBy':_0xc96684['resolvedBy'],'deletedAt':_0xc96684['deletedAt'],'unlinkedAt':_0xc96684['unlinkedAt']};}catch(_0x30297e){if('CKEditorCloudServicesServerError'===_0x30297e['name']&&'404'===_0x30297e['code']&&_0x2bcc5d<0x5)return await(_0x3df2fb=0x64*_0x2bcc5d,new Promise(_0x25ec94=>{setTimeout(_0x25ec94,_0x3df2fb);})),this['getCommentThread'](_0x5b4b6a,_0x2bcc5d+0x1);if('CKEditorCloudServicesServerError'===_0x30297e['name'])throw _0x30297e;throw _0x4c0398['fromPublicError'](_0x30297e);}var _0x3df2fb;}async['getDocumentThreads'](){const _0x140577=new _0x34ea44(this['_documentId']),_0x42dbcc=await this['_sendRequest'](_0x34ea44['TYPE'],_0x140577),{threads:_0x115e46}=_0x6941ac['decode'](_0x42dbcc,_0x14c2a4);return{'threads':_0x115e46};}async['getConnectedSessions'](){if(!this['_isConnected'])throw new _0x4656cd('Comments',this);return this['_connectedSessions']||(this['_connectedSessions']=await _0x5c24f2['getConnectedSessions'](this['_wsGateway'],this['_documentId'],0x9)),this['_connectedSessions'];}['_connectToChannel'](_0x5ae97f,_0x132b6d){this['_channel']=_0x5ae97f['_getChannel'](CommentsService['_SERVICE'],_0x132b6d),this['_channel']&&(this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x1a046e['TYPE']),(_0x4c95d9,_0x4bd345)=>{const _0x38667d=_0x6941ac['decode'](_0x4bd345,_0x1a046e);this['fire']('commentAdded',_0x38667d);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x4a88e4['TYPE']),(_0x20118b,_0x3943e8)=>{const _0x3d2665=_0x6941ac['decode'](_0x3943e8,_0x4a88e4);this['fire']('commentRemoved',_0x3d2665);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x507442['TYPE']),(_0x1b62bf,_0x2be4a8)=>{const _0x571c99=_0x6941ac['decode'](_0x2be4a8,_0x507442);this['fire']('commentUpdated',_0x571c99);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x5c38b7['TYPE']),(_0x3a8b9b,_0x458485)=>{const _0x1b7e8e=_0x6941ac['decode'](_0x458485,_0x5c38b7);this['fire']('commentThreadRemoved',_0x1b7e8e);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x104d72['TYPE']),(_0x1a59d9,_0x1c7e01)=>{const _0x4e4d31=_0x6941ac['decode'](_0x1c7e01,_0x104d72);this['fire']('commentThreadAdded',_0x4e4d31);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x12f964['TYPE']),(_0x66f9a7,_0x41c9ef)=>{const _0x5759f5=_0x6941ac['decode'](_0x41c9ef,_0x12f964);this['fire']('commentThreadUpdated',_0x5759f5);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x500e6c['TYPE']),(_0x34b125,_0x4f750d)=>{const _0x2ce773=_0x6941ac['decode'](_0x4f750d,_0x500e6c);this['fire']('commentThreadResolved',_0x2ce773);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x362b95['TYPE']),(_0x53b42b,_0x1f84fd)=>{const _0x15d5e8=_0x6941ac['decode'](_0x1f84fd,_0x362b95);this['fire']('commentThreadReopened',_0x15d5e8);}));}['_onWsGatewayStateChange'](_0x5611f9){_0x5611f9===WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['disconnect']();}['_sendRequest'](_0x1be7ec,_0x55be5e){if(!this['_wsGateway']||!this['_isConnected'])throw new _0x4656cd('Comments',this);return this['_wsGateway']['_sendRequest'](0x9,_0x1be7ec,_0x6941ac['encode'](_0x55be5e));}}export default CommentsService;
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 _0x41fedb from'./../../descriptor.js';export default class CommentDescriptor extends _0x41fedb{static ['DESCRIPTOR_NAME']='CommentDescriptor';static ['DESCRIPTOR']={'fields':{'commentId':{'id':0x1,'type':'string'},'commentThreadId':{'id':0x2,'type':'string'},'userId':{'id':0x3,'type':'string'},'content':{'id':0x4,'type':'string'},'documentId':{'id':0x5,'type':'string'},'createdAt':{'id':0x6,'type':'string'},'attributes':{'id':0x7,'type':'string'}}};static['toJSON'](_0x3637e0){return{..._0x3637e0,'createdAt':_0x3637e0['createdAt']?.['toISOString'](),'attributes':_0x3637e0['attributes']?JSON['stringify'](_0x3637e0['attributes']):null};}static['fromJSON'](_0x282d65){return{..._0x282d65,'createdAt':new Date(_0x282d65['createdAt']),'attributes':_0x282d65['attributes']?JSON['parse'](_0x282d65['attributes']):null};}}
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 _0x3b49e6 from'./../../descriptor.js';import _0x1f830b from'./commentdescriptor.js';export default class CommentsThreadDescriptor extends _0x3b49e6{static ['DESCRIPTOR_NAME']='CommentsThreadDescriptor';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'comments':{'type':'CommentDescriptor','rule':'repeated','id':0x2},'resolvedAt':{'type':'string','id':0x3},'resolvedBy':{'type':'string','id':0x4},'context':{'type':'string','id':0x5},'createdAt':{'type':'string','id':0x6},'deletedAt':{'type':'string','id':0x7},'attributes':{'type':'string','id':0x8},'unlinkedAt':{'type':'string','id':0x9}}};static['toJSON'](_0x115242){return{..._0x115242,'createdAt':_0x115242['createdAt']?.['toISOString'](),'deletedAt':_0x115242['deletedAt']?.['toISOString'](),'resolvedAt':_0x115242['resolvedAt']?.['toISOString'](),'attributes':_0x115242['attributes']?JSON['stringify'](_0x115242['attributes']):null,'context':_0x115242['context']?JSON['stringify'](_0x115242['context']):_0x115242['context'],'comments':_0x115242['comments']?.['map'](_0x1f830b['toJSON']),'unlinkedAt':_0x115242['unlinkedAt']?.['toISOString']()};}static['fromJSON'](_0x37ccb7){return{..._0x37ccb7,'createdAt':_0x37ccb7['createdAt']?new Date(_0x37ccb7['createdAt']):void 0x0,'deletedAt':_0x37ccb7['deletedAt']?new Date(_0x37ccb7['deletedAt']):void 0x0,'resolvedAt':_0x37ccb7['resolvedAt']?new Date(_0x37ccb7['resolvedAt']):void 0x0,'attributes':_0x37ccb7['attributes']?JSON['parse'](_0x37ccb7['attributes']):null,'context':_0x37ccb7['context']?JSON['parse'](_0x37ccb7['context']):void 0x0,'comments':_0x37ccb7['comments']?.['map'](_0x1f830b['fromJSON']),'unlinkedAt':_0x37ccb7['unlinkedAt']?new Date(_0x37ccb7['unlinkedAt']):void 0x0};}}
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 _0x40b441 from'../../descriptor.js';export default class CommentThreadAddedCommentDescriptor extends _0x40b441{static ['DESCRIPTOR_NAME']='CommentThreadAddedCommentDescriptor';static ['DESCRIPTOR']={'fields':{'commentId':{'id':0x1,'type':'string'},'createdAt':{'id':0x2,'type':'string'}}};static['toJSON'](_0x362c5d){return{'commentId':_0x362c5d['commentId'],'createdAt':_0x362c5d['createdAt']?.['toISOString']()};}static['fromJSON'](_0x135660){return{'commentId':_0x135660['commentId'],'createdAt':new Date(_0x135660['createdAt'])};}}
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 _0x923b12 from'./../../message.js';import _0x2d461f from'../descriptors/commentsthreaddescriptor.js';export default class AddCommentMessage extends _0x923b12{['documentId'];['commentThreadId'];['content'];['commentId'];['userId'];['attributes'];['commentThread'];['createdAt'];static ['TYPE']='91';static ['READABLE_TYPE_NAME']='addComment';static ['DESCRIPTOR_NAME']='CommentsV2AddCommentMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'content':{'type':'string','id':0x2},'documentId':{'type':'string','id':0x3},'commentId':{'type':'string','id':0x4},'createdAt':{'type':'string','id':0x5},'userId':{'type':'string','id':0x6},'attributes':{'type':'string','id':0x7},'commentThread':{'type':'CommentsThreadDescriptor','id':0x8}}};constructor(_0x39acc4,_0x39a856,_0x443ed4,_0x36f3b7='',_0x46dc7a,_0x22cfe7='',_0x17af8a=null,_0x5a7cdb){super(),this['documentId']=_0x39acc4,this['commentThreadId']=_0x39a856,this['content']=_0x443ed4,this['commentId']=_0x36f3b7,this['userId']=_0x22cfe7,this['attributes']=_0x17af8a,this['commentThread']=_0x5a7cdb,this['createdAt']=_0x46dc7a?new Date(_0x46dc7a):'';}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'content':this['content'],'documentId':this['documentId'],'commentId':this['commentId'],'createdAt':this['createdAt']instanceof Date?this['createdAt']['toISOString']():this['createdAt'],'userId':this['userId'],'attributes':JSON['stringify'](this['attributes']),'commentThread':this['commentThread']?_0x2d461f['toJSON'](this['commentThread']):void 0x0};}static['fromJSON'](_0x13c7df){return new AddCommentMessage(_0x13c7df['documentId'],_0x13c7df['commentThreadId'],_0x13c7df['content'],_0x13c7df['commentId']?_0x13c7df['commentId']:void 0x0,_0x13c7df['createdAt']?new Date(_0x13c7df['createdAt']):void 0x0,_0x13c7df['userId']?_0x13c7df['userId']:void 0x0,_0x13c7df['attributes']?JSON['parse'](_0x13c7df['attributes']):{},_0x13c7df['commentThread']?_0x2d461f['fromJSON'](_0x13c7df['commentThread']):void 0x0);}}
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 _0x300751 from'../../../message.js';import _0x27fe36 from'../../descriptors/commentdescriptor.js';export default class AddCommentThreadMessage extends _0x300751{['documentId'];['commentThreadId'];['comments'];['context'];['resolvedBy'];['attributes'];['createdAt'];['resolvedAt'];['deletedAt'];static ['TYPE']='140';static ['READABLE_TYPE_NAME']='addCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2AddCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1},'commentThreadId':{'type':'string','id':0x2},'context':{'type':'string','id':0x3},'createdAt':{'type':'string','id':0x4},'resolvedAt':{'type':'string','id':0x5},'resolvedBy':{'type':'string','id':0x6},'attributes':{'type':'string','id':0x7},'deletedAt':{'type':'string','id':0x8},'comments':{'type':'CommentDescriptor','rule':'repeated','id':0x9}}};constructor(_0x4d2501,_0xa4d11d,_0x43c4e0=[],_0x16db2f,_0x4165c3=null,_0x19f586=null,_0x12b29a=null,_0x254f01=null,_0x24e354=null){super(),this['documentId']=_0x4d2501,this['commentThreadId']=_0xa4d11d,this['comments']=_0x43c4e0,this['context']=_0x16db2f,this['resolvedBy']=_0x4165c3,this['attributes']=_0x24e354,this['createdAt']=_0x19f586?new Date(_0x19f586):'',this['resolvedAt']=_0x12b29a?new Date(_0x12b29a):'',this['deletedAt']=_0x254f01?new Date(_0x254f01):'';}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'context':this['context']?JSON['stringify'](this['context']):this['context'],'documentId':this['documentId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']instanceof Date?this['resolvedAt']['toISOString']():this['resolvedAt'],'deletedAt':this['deletedAt']instanceof Date?this['deletedAt']['toISOString']():this['deletedAt'],'createdAt':this['createdAt']instanceof Date?this['createdAt']['toISOString']():this['createdAt'],'attributes':this['attributes']?JSON['stringify'](this['attributes']):this['attributes'],'comments':this['comments']?.['map'](_0x33ce20=>_0x27fe36['toJSON'](_0x33ce20))};}static['fromJSON'](_0x57ed06){return new AddCommentThreadMessage(_0x57ed06['documentId'],_0x57ed06['commentThreadId'],_0x57ed06['comments']?.['map'](_0x3ec3c5=>_0x27fe36['fromJSON']({..._0x3ec3c5,'documentId':_0x57ed06['documentId'],'commentThreadId':_0x57ed06['commentThreadId']})),_0x57ed06['context']?JSON['parse'](_0x57ed06['context']):_0x57ed06['context'],_0x57ed06['resolvedBy'],_0x57ed06['createdAt']?new Date(_0x57ed06['createdAt']):void 0x0,_0x57ed06['resolvedAt']?new Date(_0x57ed06['resolvedAt']):void 0x0,_0x57ed06['deletedAt']?new Date(_0x57ed06['deletedAt']):void 0x0,_0x57ed06['attributes']?JSON['parse'](_0x57ed06['attributes']):_0x57ed06['attributes']);}}
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 _0xc6a4b5 from'../../../message.js';export default class ReopenCommentThreadMessage extends _0xc6a4b5{['commentThreadId'];['documentId'];static ['TYPE']='141';static ['READABLE_TYPE_NAME']='reopenCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2ReopenCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2}}};constructor(_0x160a4d,_0x5cc224){super(),this['commentThreadId']=_0x160a4d,this['documentId']=_0x5cc224;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId']};}static['fromJSON'](_0x182a39){return new ReopenCommentThreadMessage(_0x182a39['commentThreadId'],_0x182a39['documentId']);}}
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 _0x444309 from'../../../message.js';export default class ResolveCommentThreadMessage extends _0x444309{['commentThreadId'];['documentId'];['resolvedBy'];['resolvedAt'];static ['TYPE']='142';static ['READABLE_TYPE_NAME']='resolveCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2ResolveCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2},'resolvedBy':{'type':'string','id':0x3},'resolvedAt':{'type':'string','id':0x4}}};constructor(_0x1681f4,_0x3c163e,_0x1acde7,_0xf97a04){super(),this['commentThreadId']=_0x1681f4,this['documentId']=_0x3c163e,this['resolvedBy']=_0x1acde7,this['resolvedAt']=_0xf97a04?new Date(_0xf97a04):void 0x0;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']?.['toISOString']()};}static['fromJSON'](_0x11c28f){return new ResolveCommentThreadMessage(_0x11c28f['commentThreadId'],_0x11c28f['documentId'],_0x11c28f['resolvedBy'],_0x11c28f['resolvedAt']);}}
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 _0x1a503e from'../../../message.js';export default class UpdateCommentThreadMessage extends _0x1a503e{['commentThreadId'];['documentId'];['context'];['attributes'];['unlinkedAt'];static ['TYPE']='143';static ['READABLE_TYPE_NAME']='updateCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2UpdateCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2},'context':{'type':'string','id':0x3},'attributes':{'type':'string','id':0x4},'unlinkedAt':{'type':'string','id':0x5}}};constructor(_0x14ea94,_0x3b8879,_0x43c045,_0x146ee5=null,_0x88d07d=null){super(),this['commentThreadId']=_0x14ea94,this['documentId']=_0x3b8879,this['context']=_0x43c045,this['attributes']=_0x146ee5,this['unlinkedAt']=_0x88d07d?new Date(_0x88d07d):'';}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'context':this['context']?JSON['stringify'](this['context']):this['context'],'attributes':this['attributes']?JSON['stringify'](this['attributes']):null,'unlinkedAt':this['unlinkedAt']instanceof Date?this['unlinkedAt']['toISOString']():this['unlinkedAt']};}static['fromJSON'](_0x558c1d){return new UpdateCommentThreadMessage(_0x558c1d['commentThreadId'],_0x558c1d['documentId'],_0x558c1d['context']?JSON['parse'](_0x558c1d['context']):_0x558c1d['context'],_0x558c1d['attributes']?JSON['parse'](_0x558c1d['attributes']):null,_0x558c1d['unlinkedAt']?new Date(_0x558c1d['unlinkedAt']):null);}}
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 _0x4e346f from'./../../message.js';export default class ConnectMessage extends _0x4e346f{['documentId'];static ['TYPE']='92';static ['READABLE_TYPE_NAME']='connectToComment';static ['DESCRIPTOR_NAME']='CommentsV2ConnectMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(_0x48036c){super(),this['documentId']=_0x48036c;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x409cfd){return new ConnectMessage(_0x409cfd['documentId']);}}
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 _0x38acfd from'./../../message.js';export default class GetCommentThreadMessage extends _0x38acfd{['commentThreadId'];['documentId'];static ['TYPE']='93';static ['READABLE_TYPE_NAME']='getComment';static ['DESCRIPTOR_NAME']='CommentsV2GetCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2}}};constructor(_0x586675,_0x58d165){super(),this['commentThreadId']=_0x586675,this['documentId']=_0x58d165;}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'documentId':this['documentId']};}static['fromJSON'](_0x19aeff){return new GetCommentThreadMessage(_0x19aeff['commentThreadId'],_0x19aeff['documentId']);}}
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 _0x23a8a9 from'./../../message.js';export default class GetDocumentThreadsMessage extends _0x23a8a9{['documentId'];static ['TYPE']='94';static ['READABLE_TYPE_NAME']='getDocumentThreads';static ['DESCRIPTOR_NAME']='CommentsV2GetDocumentThreadsMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(_0x2ea60c){super(),this['documentId']=_0x2ea60c;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x1a18d7){return new GetDocumentThreadsMessage(_0x1a18d7['documentId']);}}
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 _0x28a340 from'./../../message.js';export default class RemoveCommentMessage extends _0x28a340{['documentId'];['commentThreadId'];['commentId'];static ['TYPE']='95';static ['READABLE_TYPE_NAME']='removeComment';static ['DESCRIPTOR_NAME']='CommentsV2RemoveCommentMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'commentId':{'type':'string','id':0x2},'documentId':{'type':'string','id':0x3}}};constructor(_0x228c1a,_0x50253f,_0x10c584){super(),this['documentId']=_0x228c1a,this['commentThreadId']=_0x50253f,this['commentId']=_0x10c584;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'commentId':this['commentId']};}static['fromJSON'](_0x2eccaa){return new RemoveCommentMessage(_0x2eccaa['documentId'],_0x2eccaa['commentThreadId'],_0x2eccaa['commentId']);}}
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 _0x3ee6b3 from'./../../message.js';export default class RemoveCommentThreadMessage extends _0x3ee6b3{['documentId'];['commentThreadId'];static ['TYPE']='97';static ['READABLE_TYPE_NAME']='removeCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2RemoveCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2}}};constructor(_0x428737,_0x204735){super(),this['documentId']=_0x428737,this['commentThreadId']=_0x204735;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId']};}static['fromJSON'](_0x5af9b6){return new RemoveCommentThreadMessage(_0x5af9b6['documentId'],_0x5af9b6['commentThreadId']);}}
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 _0x3cacd6 from'./../../message.js';import _0x8404da from'../descriptors/commentsthreaddescriptor.js';export default class UpdateCommentMessage extends _0x3cacd6{['documentId'];['commentThreadId'];['commentId'];['content'];['attributes'];['isAttributesUpdated'];['commentThread'];static ['TYPE']='96';static ['READABLE_TYPE_NAME']='updateComment';static ['DESCRIPTOR_NAME']='CommentsV2UpdateCommentMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'commentId':{'type':'string','id':0x2},'content':{'type':'string','id':0x3},'documentId':{'type':'string','id':0x4},'attributes':{'type':'string','id':0x5},'isAttributesUpdated':{'type':'bool','id':0x6},'commentThread':{'type':'CommentsThreadDescriptor','id':0x7}}};constructor(_0x25d4f2,_0x52a709,_0x197d81,_0x25017a,_0x3e1595=null,_0x41bb58=!0x1,_0xe8183d){super(),this['documentId']=_0x25d4f2,this['commentThreadId']=_0x52a709,this['commentId']=_0x197d81,this['content']=_0x25017a,this['attributes']=_0x3e1595,this['isAttributesUpdated']=_0x41bb58,this['commentThread']=_0xe8183d;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'commentId':this['commentId'],'content':this['content'],'attributes':this['attributes']?JSON['stringify'](this['attributes']):null,'isAttributesUpdated':this['isAttributesUpdated'],'commentThread':this['commentThread']?_0x8404da['toJSON'](this['commentThread']):void 0x0};}static['fromJSON'](_0x22c9c6){return new UpdateCommentMessage(_0x22c9c6['documentId'],_0x22c9c6['commentThreadId'],_0x22c9c6['commentId'],_0x22c9c6['content'],_0x22c9c6['attributes']?JSON['parse'](_0x22c9c6['attributes']):null,_0x22c9c6['isAttributesUpdated'],_0x22c9c6['commentThread']?_0x8404da['fromJSON'](_0x22c9c6['commentThread']):void 0x0);}}
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 _0xfd5cda from'./../../message.js';export default class AddCommentResponse extends _0xfd5cda{['commentThreadId'];['commentId'];['createdAt'];static ['DESCRIPTOR_NAME']='CommentsV2AddCommentResponse';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'commentId':{'type':'string','id':0x2},'createdAt':{'type':'string','id':0x3}}};constructor(_0x2edcb2,_0x4cf441,_0x108370){super(),this['commentThreadId']=_0x2edcb2,this['commentId']=_0x4cf441,this['createdAt']=new Date(_0x108370);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'commentId':this['commentId'],'createdAt':this['createdAt']['toISOString']()};}static['fromJSON'](_0x2d286a){return new AddCommentResponse(_0x2d286a['commentThreadId'],_0x2d286a['commentId'],_0x2d286a['createdAt']);}}
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 _0x48daec from'./../../../message.js';import _0x5ecc25 from'../../descriptors/commentthreadaddedcomment.js';export default class AddCommentThreadResponse extends _0x48daec{['commentThreadId'];['comments'];['createdAt'];static ['DESCRIPTOR_NAME']='CommentsV2AddCommentThreadResponse';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'createdAt':{'type':'string','id':0x2},'comments':{'type':'CommentThreadAddedCommentDescriptor','rule':'repeated','id':0x3}}};constructor(_0x5c4721,_0x5db865,_0x5f0b09=[]){super(),this['commentThreadId']=_0x5c4721,this['comments']=_0x5f0b09,this['createdAt']=new Date(_0x5db865);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'createdAt':this['createdAt']['toISOString'](),'comments':this['comments']['map'](_0x51292b=>_0x5ecc25['toJSON'](_0x51292b))};}static['fromJSON'](_0x585e45){return new AddCommentThreadResponse(_0x585e45['commentThreadId'],_0x585e45['createdAt'],_0x585e45['comments']['map'](_0x401b55=>_0x5ecc25['fromJSON'](_0x401b55)));}}
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 _0x560910 from'./../../../message.js';export default class ResolveCommentThreadResponse extends _0x560910{['commentThreadId'];['documentId'];['resolvedBy'];['resolvedAt'];static ['DESCRIPTOR_NAME']='CommentsV2ResolveCommentThreadResponse';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2},'resolvedAt':{'type':'string','id':0x3},'resolvedBy':{'type':'string','id':0x4}}};constructor(_0x281cc1,_0x38670b,_0x2d50ec,_0x39e07e){super(),this['commentThreadId']=_0x281cc1,this['documentId']=_0x38670b,this['resolvedBy']=_0x2d50ec,this['resolvedAt']=new Date(_0x39e07e);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'documentId':this['documentId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']['toISOString']()};}static['fromJSON'](_0x16c036){return new ResolveCommentThreadResponse(_0x16c036['commentThreadId'],_0x16c036['documentId'],_0x16c036['resolvedBy'],_0x16c036['resolvedAt']);}}
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 _0x135514 from'./../../message.js';import _0x2c0d83 from'../descriptors/commentsthreaddescriptor.js';export default class ConnectResponse extends _0x135514{['channel'];['_threads'];['_threadsV2'];['threads'];static ['DESCRIPTOR_NAME']='CommentsV2ConnectResponse';static ['DESCRIPTOR']={'fields':{'channel':{'type':'string','id':0x1},'threads':{'type':'string','rule':'repeated','id':0x2},'threadsV2':{'type':'CommentsThreadDescriptor','rule':'repeated','id':0x3}}};constructor(_0x24450f,_0x51f8e7,_0x85fb34){super(),this['channel']=_0x24450f,this['_threads']=_0x51f8e7,this['_threadsV2']=_0x85fb34,this['threads']=_0x85fb34?.['length']?_0x85fb34:_0x51f8e7;}['toJSON'](){return{'channel':this['channel'],'threads':this['_threads']?.['map'](_0x58c278=>JSON['stringify'](_0x58c278)),'threadsV2':this['_threadsV2']?.['map'](_0x2c0d83['toJSON'])};}static['fromJSON'](_0x57b361){return new ConnectResponse(_0x57b361['channel'],_0x57b361['threads']?.['map'](_0x4ff9e9=>JSON['parse'](_0x4ff9e9)),_0x57b361['threadsV2']?.['map'](_0x2c0d83['fromJSON']));}}
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']));}}