@ckeditor/ckeditor-cloud-services-collaboration 53.0.6 → 53.0.7

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 (103) hide show
  1. package/dist/index.js +32 -32
  2. package/package.json +3 -3
  3. package/src/ckeditorcloudserviceserror.js +1 -1
  4. package/src/ckeditorcloudservicesservererror.js +1 -1
  5. package/src/collaborativeeditingservice/collaborativeeditingservice.js +2 -2
  6. package/src/collaborativeeditingservice/descriptors/operationmetadatadescriptor.js +1 -1
  7. package/src/collaborativeeditingservice/helpers/operationmetadatahelpers.js +1 -1
  8. package/src/collaborativeeditingservice/messages/collaborativeeditingconnectmessage.js +1 -1
  9. package/src/collaborativeeditingservice/messages/collaborativeeditingreconnectmessage.js +1 -1
  10. package/src/collaborativeeditingservice/messages/collaborativeeditingupdatemessage.js +1 -1
  11. package/src/collaborativeeditingservice/messages/getdocumentdetailsmessage.js +1 -1
  12. package/src/collaborativeeditingservice/responses/collaborativeeditingconnectresponse.js +1 -1
  13. package/src/collaborativeeditingservice/responses/collaborativeeditingresponse.js +1 -1
  14. package/src/collaborativeeditingservice/responses/getdocumentdetailsresponse.js +1 -1
  15. package/src/comments-v2/commentsservice.js +2 -2
  16. package/src/comments-v2/descriptors/commentdescriptor.js +1 -1
  17. package/src/comments-v2/descriptors/commentsthreaddescriptor.js +1 -1
  18. package/src/comments-v2/descriptors/commentthreadaddedcomment.js +1 -1
  19. package/src/comments-v2/messages/addcommentmessage.js +1 -1
  20. package/src/comments-v2/messages/comment-threads/addcommentthreadmessage.js +1 -1
  21. package/src/comments-v2/messages/comment-threads/reopencommentthreadmessage.js +1 -1
  22. package/src/comments-v2/messages/comment-threads/resolvecommentthreadmessage.js +1 -1
  23. package/src/comments-v2/messages/comment-threads/updatecommentthreadmessage.js +1 -1
  24. package/src/comments-v2/messages/connectmessage.js +1 -1
  25. package/src/comments-v2/messages/getcommentthreadmessage.js +1 -1
  26. package/src/comments-v2/messages/getdocumentthreadsmessage.js +1 -1
  27. package/src/comments-v2/messages/removecommentmessage.js +1 -1
  28. package/src/comments-v2/messages/removecommentthreadmessage.js +1 -1
  29. package/src/comments-v2/messages/updatecommentmessage.js +1 -1
  30. package/src/comments-v2/responses/addcommentresponse.js +1 -1
  31. package/src/comments-v2/responses/comment-threads/addcommentthreadresponse.js +1 -1
  32. package/src/comments-v2/responses/comment-threads/resolvecommentthreadresponse.js +1 -1
  33. package/src/comments-v2/responses/connectresponse.js +1 -1
  34. package/src/comments-v2/responses/getcommentthreadresponse.js +1 -1
  35. package/src/comments-v2/responses/getdocumentthreadsresponse.js +1 -1
  36. package/src/compiledmessages.js +2 -2
  37. package/src/descriptor.js +1 -1
  38. package/src/descriptors/keyvaluedescriptor.js +1 -1
  39. package/src/editor/editorservice.js +2 -2
  40. package/src/editor/messages/iseditorbundleuploadedmessage.js +1 -1
  41. package/src/editor/responses/iseditorbundleuploadedresponse.js +1 -1
  42. package/src/errors/ServiceNotConnectedError.js +1 -1
  43. package/src/index.js +1 -1
  44. package/src/message.js +1 -1
  45. package/src/messagescompressor.js +1 -1
  46. package/src/messagesmapper.js +1 -1
  47. package/src/revision-history/descriptors/revisiondescriptor.js +1 -1
  48. package/src/revision-history/messages/revisionhistoryconnectmessage.js +1 -1
  49. package/src/revision-history/messages/revisionhistorygetrevisionmessage.js +1 -1
  50. package/src/revision-history/messages/revisionhistoryreconnectmessage.js +1 -1
  51. package/src/revision-history/messages/revisionhistoryupdaterevisionsmessage.js +1 -1
  52. package/src/revision-history/responses/revisionhistoryconnectresponse.js +1 -1
  53. package/src/revision-history/responses/revisionhistorygetrevisionresponse.js +1 -1
  54. package/src/revision-history/responses/revisionhistoryupdaterevisionsresponse.js +1 -1
  55. package/src/revision-history/revisionhistoryservice.js +2 -2
  56. package/src/sessions/descriptors/sessiondescriptor.js +1 -1
  57. package/src/sessions/messages/sessionsconnectmessage.js +1 -1
  58. package/src/sessions/messages/socketconnectmessage.js +1 -1
  59. package/src/sessions/messages/socketdisconnectmessage.js +1 -1
  60. package/src/sessions/responses/sessionsconnectresponse.js +1 -1
  61. package/src/sessions/sessioncollection.js +1 -1
  62. package/src/sessions/sessions.js +1 -1
  63. package/src/track-changes/descriptors/suggestiondescriptor.js +1 -1
  64. package/src/track-changes/messages/addsuggestionmessage.js +1 -1
  65. package/src/track-changes/messages/batchUpdateSuggestionsStateMessage.js +1 -1
  66. package/src/track-changes/messages/connectmessage.js +1 -1
  67. package/src/track-changes/messages/getallsuggestionsmessage.js +1 -1
  68. package/src/track-changes/messages/getsuggestionmessage.js +1 -1
  69. package/src/track-changes/messages/updatesuggestionmessage.js +1 -1
  70. package/src/track-changes/responses/addsuggestionresponse.js +1 -1
  71. package/src/track-changes/responses/connectresponse.js +1 -1
  72. package/src/track-changes/responses/getallsuggestionsresponse.js +1 -1
  73. package/src/track-changes/responses/getsuggestionresponse.js +1 -1
  74. package/src/track-changes/trackchangesservice.js +2 -2
  75. package/src/users/descriptors/userdescriptor.js +1 -1
  76. package/src/users/messages/getmanyusersmessage.js +1 -1
  77. package/src/users/messages/getusermessage.js +1 -1
  78. package/src/users/responses/getmanyusersresponse.js +1 -1
  79. package/src/users/responses/getuserresponse.js +1 -1
  80. package/src/users/user.js +1 -1
  81. package/src/version.d.ts +1 -1
  82. package/src/version.js +1 -1
  83. package/src/websocketgateway/channel.js +2 -2
  84. package/src/websocketgateway/messages/channelmessage.js +1 -1
  85. package/src/websocketgateway/parser/packetparser.js +1 -1
  86. package/src/websocketgateway/parser/packets/bytesbytespacketdatamessage.js +2 -2
  87. package/src/websocketgateway/parser/packets/numberbytespacketdatamessage.js +2 -2
  88. package/src/websocketgateway/parser/packets/numbernumberpacketdatamessag.js +2 -2
  89. package/src/websocketgateway/parser/packets/numberobjectpacketdatamessage.js +2 -2
  90. package/src/websocketgateway/parser/packets/numberstringpacketdatamessag.js +2 -2
  91. package/src/websocketgateway/parser/packets/objectbufferpacketdatamessage.js +2 -2
  92. package/src/websocketgateway/parser/packets/objectobjectpacketdatamessage.js +2 -2
  93. package/src/websocketgateway/parser/packets/packagedatamessage.js +1 -1
  94. package/src/websocketgateway/parser/packets/packetmessage.js +2 -2
  95. package/src/websocketgateway/parser/packets/packetoptionsmessage.js +1 -1
  96. package/src/websocketgateway/parser/packets/stringbytespacketdatamessage.js +2 -2
  97. package/src/websocketgateway/parser/packets/stringnumberpacketdatamessage.js +2 -2
  98. package/src/websocketgateway/parser/packets/stringobjectpacketdatamessage.js +2 -2
  99. package/src/websocketgateway/parser/packets/stringstringpacketdatamessage.js +2 -2
  100. package/src/websocketgateway/parser/parser.js +2 -2
  101. package/src/websocketgateway/parser/parserutils.js +1 -1
  102. package/src/websocketgateway/requestsmanager.js +1 -1
  103. 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.6",
3
+ "version": "53.0.7",
4
4
  "description": "CKEditor Cloud Services Collaboration low-level API is required by CKEditor 5 Collaboration features to enable real-time collaborative editing in CKEditor 5.",
5
5
  "main": "src/index.js",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -27,11 +27,11 @@
27
27
  "author": "CKSource Holding sp. z o.o. (http://cksource.com/)",
28
28
  "homepage": "https://ckeditor.com/ckeditor-cloud-services/",
29
29
  "dependencies": {
30
- "protobufjs": "7.5.8",
30
+ "protobufjs": "7.6.5",
31
31
  "socket.io-client": "4.7.0",
32
32
  "socket.io-parser": "~4.2.3",
33
33
  "url-parse": "1.5.10",
34
- "uuid": "^9.0.1"
34
+ "uuid": "^14.0.1"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "ckeditor5": ">= 37.0.0 < 48.0.0 || ^0.0.0-nightly || ^0.0.0-internal",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export default class CKEditorCloudServicesError extends Error{['context'];['code'];['data'];constructor(_0x21ff01,_0x73ae50,_0x52ae00=null,_0x3de021={}){super('cloud-services-internal-error:\x20'+_0x21ff01),this['context']=_0x73ae50,this['code']=_0x52ae00,this['data']=_0x3de021,this['name']='CKEditorError';}static['fromPublicError'](_0x4afb5c){return new CKEditorCloudServicesError(function(_0x3ac444){let _0x3ea534='cloud-services-error:\x20'+_0x3ac444['message'];return _0x3ac444['data']&&(_0x3ea534+='\x0aError\x20data:\x20'+JSON['stringify'](_0x3ac444['data'])),_0x3ac444['explanation']&&(_0x3ea534+='\x0aExplanation:\x20'+_0x3ac444['explanation']),_0x3ac444['action']&&(_0x3ea534+='\x0aAction:\x20'+_0x3ac444['action']),_0x3ac444['traceId']&&(_0x3ea534+='\x0aTraceId:\x20'+_0x3ac444['traceId']),_0x3ac444['code']&&(_0x3ea534+='\x0aCode:\x20'+_0x3ac444['code']),_0x3ea534;}(_0x4afb5c),_0x4afb5c);}}
23
+ export default class CKEditorCloudServicesError extends Error{['context'];['code'];['data'];constructor(_0xf7721,_0x221407,_0x3dabf1=null,_0x28fe22={}){super('cloud-services-internal-error:\x20'+_0xf7721),this['context']=_0x221407,this['code']=_0x3dabf1,this['data']=_0x28fe22,this['name']='CKEditorError';}static['fromPublicError'](_0x32abb6){return new CKEditorCloudServicesError(function(_0x3021df){let _0x29c02f='cloud-services-error:\x20'+_0x3021df['message'];return _0x3021df['data']&&(_0x29c02f+='\x0aError\x20data:\x20'+JSON['stringify'](_0x3021df['data'])),_0x3021df['explanation']&&(_0x29c02f+='\x0aExplanation:\x20'+_0x3021df['explanation']),_0x3021df['action']&&(_0x29c02f+='\x0aAction:\x20'+_0x3021df['action']),_0x3021df['traceId']&&(_0x29c02f+='\x0aTraceId:\x20'+_0x3021df['traceId']),_0x3021df['code']&&(_0x29c02f+='\x0aCode:\x20'+_0x3021df['code']),_0x29c02f;}(_0x32abb6),_0x32abb6);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export default class CKEditorCloudServicesServerError extends Error{['code'];['traceId'];['data'];constructor(_0x3cf837,_0x3bad7b){super(),this['name']='CKEditorCloudServicesServerError',this['stack']=void 0x0,this['message']=_0x3cf837,this['code']=_0x3bad7b['code'],this['traceId']=_0x3bad7b['traceId'],this['data']=_0x3bad7b['data'];}static['fromPublicError'](_0x414d04){return new CKEditorCloudServicesServerError(function(_0x56e729){let _0x369fc6='cloud-services-server-error:\x20'+_0x56e729['message'];return _0x56e729['explanation']&&(_0x369fc6+='\x0aExplanation:\x20'+_0x56e729['explanation']),_0x56e729['action']&&(_0x369fc6+='\x0aAction:\x20'+_0x56e729['action']),_0x56e729['traceId']&&(_0x369fc6+='\x0aTraceId:\x20'+_0x56e729['traceId']),_0x56e729['code']&&(_0x369fc6+='\x0aCode:\x20'+_0x56e729['code']),_0x369fc6;}(_0x414d04),_0x414d04);}}
23
+ export default class CKEditorCloudServicesServerError extends Error{['code'];['traceId'];['data'];constructor(_0x3467dc,_0x450de3){super(),this['name']='CKEditorCloudServicesServerError',this['stack']=void 0x0,this['message']=_0x3467dc,this['code']=_0x450de3['code'],this['traceId']=_0x450de3['traceId'],this['data']=_0x450de3['data'];}static['fromPublicError'](_0x48966c){return new CKEditorCloudServicesServerError(function(_0x4b21cd){let _0xb4b348='cloud-services-server-error:\x20'+_0x4b21cd['message'];return _0x4b21cd['explanation']&&(_0xb4b348+='\x0aExplanation:\x20'+_0x4b21cd['explanation']),_0x4b21cd['action']&&(_0xb4b348+='\x0aAction:\x20'+_0x4b21cd['action']),_0x4b21cd['traceId']&&(_0xb4b348+='\x0aTraceId:\x20'+_0x4b21cd['traceId']),_0x4b21cd['code']&&(_0xb4b348+='\x0aCode:\x20'+_0x4b21cd['code']),_0xb4b348;}(_0x48966c),_0x48966c);}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{v4 as _0x37c572}from'uuid';import{EmitterMixin}from'ckeditor5/src/utils.js';import _0x106f64 from'./../messagescompressor.js';import _0x45b39f from'./../sessions/sessions.js';import _0x38a5d8 from'./messages/collaborativeeditingconnectmessage.js';import _0x36bdba from'./messages/collaborativeeditingupdatemessage.js';import _0xc7a437 from'./messages/collaborativeeditingreconnectmessage.js';import _0x796979 from'./responses/collaborativeeditingresponse.js';import _0xbfb47c from'./responses/collaborativeeditingconnectresponse.js';import _0x3eac26 from'./../websocketgateway/websocketgateway.js';import _0x4ce372 from'../ckeditorcloudserviceserror.js';import _0x1b0954 from'../errors/ServiceNotConnectedError.js';import _0x282d55 from'./responses/getdocumentdetailsresponse.js';import _0x4a89f8 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(_0x23e9a3,_0x13ec10){if(super(),!_0x23e9a3)throw new TypeError('Param\x20\x22bundleVersion\x22\x20must\x20be\x20provided.');this['_id']=_0x13ec10??_0x37c572(),this['_isConnected']=!0x1,this['_bundleVersion']=_0x23e9a3;}['getId'](){return this['_id'];}['isConnected'](){return this['_isConnected'];}['connect'](_0x5953d5,_0x12f7c3={'buffers':[],'types':[]},_0x3f7d1f){const _0x645b8c=new _0x38a5d8(this['getId'](),_0x12f7c3['buffers'],_0x12f7c3['types'],this['_bundleVersion'],_0x3f7d1f);return this['_connect'](_0x5953d5,_0x645b8c);}['reconnect'](_0x5ef44b,_0x457b7e){if(this['isConnected']())throw new _0x4ce372('Cannot\x20reconnect\x20to\x20already\x20connected\x20service.',_0x5ef44b);return this['_connect'](_0x5ef44b,new _0xc7a437(this['getId'](),_0x457b7e,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 _0x8f6da5=new _0x4a89f8(this['getId']());if(!this['_wsGateway'])throw new _0x1b0954('Collaborative\x20Editing',this);const _0x341702=await this['_wsGateway']['_sendRequest'](0x1,_0x4a89f8['TYPE'],_0x106f64['encode'](_0x8f6da5));return _0x106f64['decode'](_0x341702,_0x282d55);}async['sendOperations'](_0x79640b,_0xcb93b3,_0xf966d6){if(!_0x79640b?.['types']?.['length'])throw new _0x4ce372('Cannot\x20send\x20empty\x20update.',this['_wsGateway']);const _0x48e2fa='number'==typeof _0xcb93b3?_0xcb93b3:parseInt(_0xcb93b3);if(!Number['isInteger'](_0x48e2fa)||_0x48e2fa<0x0)throw new _0x4ce372('Base\x20version\x20not\x20provided.',this['_wsGateway']);const _0x2aa3a8=new _0x36bdba(this['getId'](),_0x79640b['buffers'],_0x79640b['types'],_0x48e2fa,[],_0xf966d6);if(!this['_wsGateway']||!this['_isConnected'])throw new _0x1b0954('Collaborative\x20Editing',this);const _0x2b9c4a=await this['_wsGateway']['_sendRequest'](0x1,_0x36bdba['TYPE'],_0x106f64['encode'](_0x2aa3a8));return _0x106f64['decode'](_0x2b9c4a,_0x796979);}async['getConnectedSessions'](){if(!this['_isConnected'])throw new _0x1b0954('Collaborative\x20Editing',this);return this['_connectedSessions']||(this['_connectedSessions']=await _0x45b39f['getConnectedSessions'](this['_wsGateway'],this['_id'],0x1)),this['_connectedSessions'];}static['getConnectedSessions'](_0x3352ca,_0xed6c01){return _0x45b39f['getConnectedSessions'](_0x3352ca,_0xed6c01,0x1);}async['_connect'](_0x149004,_0x48e12b){if(this['isConnected']())return;if(_0x149004['state']!==_0x3eac26['STATE_CONNECTED'])throw new _0x4ce372('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x149004);this['_wsGateway']=_0x149004,this['stopListening'](_0x149004,'change:state');const _0x3dbcc2=await _0x149004['_sendRequest'](0x1,_0x48e12b['constructor']['TYPE'],_0x106f64['encode'](_0x48e12b)),_0x2b231e=_0x106f64['decode'](_0x3dbcc2,_0xbfb47c);return this['listenTo'](_0x149004,'change:state',(_0x56f5c2,_0x160b44,_0x47757e)=>this['_onWsGatewayStateChange'](_0x47757e),{'priority':_0x3eac26['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0x149004,_0x2b231e['channel']),this['_isConnected']=!0x0,this['fire']('connected'),_0x2b231e;}['_connectToChannel'](_0x57eb44,_0x1fba6c){this['_channel']=_0x57eb44['_getChannel'](0x1,_0x1fba6c),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x36bdba['TYPE']),(_0x446a83,_0x334825)=>{const _0x233c08=_0x106f64['decode'](_0x334825,_0x36bdba);this['fire']('operationsReceived',_0x233c08['baseVersion'],_0x233c08['data'],_0x233c08['metadata']);});}['_onWsGatewayStateChange'](_0x3656cc){_0x3656cc===_0x3eac26['STATE_DISCONNECTED']&&this['disconnect']();}}
23
+ import{v4 as _0x4d6312}from'uuid';import{EmitterMixin}from'ckeditor5/src/utils.js';import _0x315f50 from'./../messagescompressor.js';import _0x5ac02b from'./../sessions/sessions.js';import _0x5c5e78 from'./messages/collaborativeeditingconnectmessage.js';import _0x47efcc from'./messages/collaborativeeditingupdatemessage.js';import _0x22b583 from'./messages/collaborativeeditingreconnectmessage.js';import _0x1a103a from'./responses/collaborativeeditingresponse.js';import _0x32861e from'./responses/collaborativeeditingconnectresponse.js';import _0x1a7208 from'./../websocketgateway/websocketgateway.js';import _0xe0e0db from'../ckeditorcloudserviceserror.js';import _0x5562f0 from'../errors/ServiceNotConnectedError.js';import _0x46981b from'./responses/getdocumentdetailsresponse.js';import _0xb4c448 from'./messages/getdocumentdetailsmessage.js';export const _SERVICE=0x1;export default class CollaborativeEditingService extends/* #__PURE__ -- @preserve */
24
+ EmitterMixin(){static ['_SERVICE']=0x1;['_bundleVersion'];['_id'];['_isConnected'];['_wsGateway'];['_channel'];['_connectedSessions'];constructor(_0x333a3f,_0x2bf07a){if(super(),!_0x333a3f)throw new TypeError('Param\x20\x22bundleVersion\x22\x20must\x20be\x20provided.');this['_id']=_0x2bf07a??_0x4d6312(),this['_isConnected']=!0x1,this['_bundleVersion']=_0x333a3f;}['getId'](){return this['_id'];}['isConnected'](){return this['_isConnected'];}['connect'](_0xffb884,_0x5342cc={'buffers':[],'types':[]},_0x5364f8){const _0x54a981=new _0x5c5e78(this['getId'](),_0x5342cc['buffers'],_0x5342cc['types'],this['_bundleVersion'],_0x5364f8);return this['_connect'](_0xffb884,_0x54a981);}['reconnect'](_0x1b9c8f,_0x3261d4){if(this['isConnected']())throw new _0xe0e0db('Cannot\x20reconnect\x20to\x20already\x20connected\x20service.',_0x1b9c8f);return this['_connect'](_0x1b9c8f,new _0x22b583(this['getId'](),_0x3261d4,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 _0x4f1ed5=new _0xb4c448(this['getId']());if(!this['_wsGateway'])throw new _0x5562f0('Collaborative\x20Editing',this);const _0x2c7127=await this['_wsGateway']['_sendRequest'](0x1,_0xb4c448['TYPE'],_0x315f50['encode'](_0x4f1ed5));return _0x315f50['decode'](_0x2c7127,_0x46981b);}async['sendOperations'](_0x1e2d6f,_0x2152fe,_0x225714){if(!_0x1e2d6f?.['types']?.['length'])throw new _0xe0e0db('Cannot\x20send\x20empty\x20update.',this['_wsGateway']);const _0x476f41='number'==typeof _0x2152fe?_0x2152fe:parseInt(_0x2152fe);if(!Number['isInteger'](_0x476f41)||_0x476f41<0x0)throw new _0xe0e0db('Base\x20version\x20not\x20provided.',this['_wsGateway']);const _0x33b4f8=new _0x47efcc(this['getId'](),_0x1e2d6f['buffers'],_0x1e2d6f['types'],_0x476f41,[],_0x225714);if(!this['_wsGateway']||!this['_isConnected'])throw new _0x5562f0('Collaborative\x20Editing',this);const _0x505a8b=await this['_wsGateway']['_sendRequest'](0x1,_0x47efcc['TYPE'],_0x315f50['encode'](_0x33b4f8));return _0x315f50['decode'](_0x505a8b,_0x1a103a);}async['getConnectedSessions'](){if(!this['_isConnected'])throw new _0x5562f0('Collaborative\x20Editing',this);return this['_connectedSessions']||(this['_connectedSessions']=await _0x5ac02b['getConnectedSessions'](this['_wsGateway'],this['_id'],0x1)),this['_connectedSessions'];}static['getConnectedSessions'](_0x4184d5,_0x2f53c9){return _0x5ac02b['getConnectedSessions'](_0x4184d5,_0x2f53c9,0x1);}async['_connect'](_0x2e820f,_0x41de25){if(this['isConnected']())return;if(_0x2e820f['state']!==_0x1a7208['STATE_CONNECTED'])throw new _0xe0e0db('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x2e820f);this['_wsGateway']=_0x2e820f,this['stopListening'](_0x2e820f,'change:state');const _0x2fb733=await _0x2e820f['_sendRequest'](0x1,_0x41de25['constructor']['TYPE'],_0x315f50['encode'](_0x41de25)),_0x32a3c3=_0x315f50['decode'](_0x2fb733,_0x32861e);return this['listenTo'](_0x2e820f,'change:state',(_0x397da3,_0x343b4e,_0x42f0e3)=>this['_onWsGatewayStateChange'](_0x42f0e3),{'priority':_0x1a7208['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0x2e820f,_0x32a3c3['channel']),this['_isConnected']=!0x0,this['fire']('connected'),_0x32a3c3;}['_connectToChannel'](_0x2699dd,_0xc952be){this['_channel']=_0x2699dd['_getChannel'](0x1,_0xc952be),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x47efcc['TYPE']),(_0xfd9170,_0x145229)=>{const _0x4a5866=_0x315f50['decode'](_0x145229,_0x47efcc);this['fire']('operationsReceived',_0x4a5866['baseVersion'],_0x4a5866['data'],_0x4a5866['metadata']);});}['_onWsGatewayStateChange'](_0x257ab4){_0x257ab4===_0x1a7208['STATE_DISCONNECTED']&&this['disconnect']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x4864f6 from'./../../descriptor.js';export default class OperationMetadataDescriptor extends _0x4864f6{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:_0xa05fcd,..._0xb8ed5a}){const _0x2e11e5={..._0xb8ed5a};return _0xa05fcd?.['toISOString']&&(_0x2e11e5['createdAt']=_0xa05fcd['toISOString']()),_0x2e11e5;}static['fromJSON']({createdAt:_0xd17480,..._0x1d05f8}){const _0x50421c={..._0x1d05f8};return _0xd17480&&(_0x50421c['createdAt']=new Date(_0xd17480)),_0x50421c;}}
23
+ import _0x5edf5d from'./../../descriptor.js';export default class OperationMetadataDescriptor extends _0x5edf5d{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:_0x4bcbbb,..._0x4ad5d8}){const _0x4872c0={..._0x4ad5d8};return _0x4bcbbb?.['toISOString']&&(_0x4872c0['createdAt']=_0x4bcbbb['toISOString']()),_0x4872c0;}static['fromJSON']({createdAt:_0x2bc53e,..._0x459d58}){const _0x1ac1f5={..._0x459d58};return _0x2bc53e&&(_0x1ac1f5['createdAt']=new Date(_0x2bc53e)),_0x1ac1f5;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export default class OperationMetadataHelpers{static['prepareMetadataForOperations'](_0xcb3d0d,_0x3d5027){if(!_0xcb3d0d?.['length']||!_0x3d5027?.['length'])return[];const _0x4a9c09=[];let _0x467296=0x0;for(const _0x18697a of _0xcb3d0d)if(0x0!==_0x18697a){if(!_0x3d5027[_0x467296])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');_0x4a9c09['push'](_0x3d5027[_0x467296]),_0x467296++;}else _0x4a9c09['push'](_0x4a9c09[_0x4a9c09['length']-0x1]);return _0x4a9c09;}static['removeUnnecessaryMetadata'](_0x52ac7c,_0x327ef6){if(!_0x52ac7c?.['length']||!_0x327ef6?.['length'])return[];const _0x116085=[];for(let _0x4318f0=0x0;_0x4318f0<_0x52ac7c['length'];_0x4318f0++)if(0x0!==_0x52ac7c[_0x4318f0]){if(!_0x327ef6[_0x4318f0])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');_0x116085['push'](_0x327ef6[_0x4318f0]);}return _0x116085;}}
23
+ export default class OperationMetadataHelpers{static['prepareMetadataForOperations'](_0x39e914,_0x2c757d){if(!_0x39e914?.['length']||!_0x2c757d?.['length'])return[];const _0x2d94f7=[];let _0x2c6778=0x0;for(const _0x434c50 of _0x39e914)if(0x0!==_0x434c50){if(!_0x2c757d[_0x2c6778])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');_0x2d94f7['push'](_0x2c757d[_0x2c6778]),_0x2c6778++;}else _0x2d94f7['push'](_0x2d94f7[_0x2d94f7['length']-0x1]);return _0x2d94f7;}static['removeUnnecessaryMetadata'](_0x3078c1,_0x3fe5c4){if(!_0x3078c1?.['length']||!_0x3fe5c4?.['length'])return[];const _0x2b41d6=[];for(let _0x4aef18=0x0;_0x4aef18<_0x3078c1['length'];_0x4aef18++)if(0x0!==_0x3078c1[_0x4aef18]){if(!_0x3fe5c4[_0x4aef18])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');_0x2b41d6['push'](_0x3fe5c4[_0x4aef18]);}return _0x2b41d6;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x530a74 from'./../../message.js';export default class CollaborativeEditingConnectMessage extends _0x530a74{['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(_0x3b5fb3,_0x22d1d0,_0x3fbbd3,_0x48bb67,_0x308a8d=''){super(),this['id']=_0x3b5fb3,this['buffers']=_0x22d1d0,this['types']=_0x3fbbd3,this['bundleVersion']=_0x48bb67,this['lastOperationId']=_0x308a8d;}['toJSON'](){return{'id':this['id'],'buffers':this['buffers'],'types':this['types'],'bundleVersion':this['bundleVersion'],'lastOperationId':this['lastOperationId']};}static['fromJSON'](_0x1c1a41){return new CollaborativeEditingConnectMessage(_0x1c1a41['id'],_0x1c1a41['buffers'],_0x1c1a41['types'],_0x1c1a41['bundleVersion'],_0x1c1a41['lastOperationId']);}}
23
+ import _0x1476d5 from'./../../message.js';export default class CollaborativeEditingConnectMessage extends _0x1476d5{['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(_0x1036ca,_0x41f5b4,_0x3cc658,_0x4713b6,_0x50a546=''){super(),this['id']=_0x1036ca,this['buffers']=_0x41f5b4,this['types']=_0x3cc658,this['bundleVersion']=_0x4713b6,this['lastOperationId']=_0x50a546;}['toJSON'](){return{'id':this['id'],'buffers':this['buffers'],'types':this['types'],'bundleVersion':this['bundleVersion'],'lastOperationId':this['lastOperationId']};}static['fromJSON'](_0x200746){return new CollaborativeEditingConnectMessage(_0x200746['id'],_0x200746['buffers'],_0x200746['types'],_0x200746['bundleVersion'],_0x200746['lastOperationId']);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x3416d3 from'./../../message.js';export default class CollaborativeEditingReconnectMessage extends _0x3416d3{['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(_0x13ed71,_0x2bb742,_0x25ed86){super(),this['id']=_0x13ed71,this['lastKnowVersion']=_0x2bb742,this['bundleVersion']=_0x25ed86;}['toJSON'](){return{'id':this['id'],'bundleVersion':this['bundleVersion'],'lastKnowVersion':this['lastKnowVersion']};}static['fromJSON'](_0x41f7f0){return new CollaborativeEditingReconnectMessage(_0x41f7f0['id'],_0x41f7f0['lastKnowVersion'],_0x41f7f0['bundleVersion']);}}
23
+ import _0x162fe8 from'./../../message.js';export default class CollaborativeEditingReconnectMessage extends _0x162fe8{['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(_0xec4880,_0xea4c32,_0x3d1ea2){super(),this['id']=_0xec4880,this['lastKnowVersion']=_0xea4c32,this['bundleVersion']=_0x3d1ea2;}['toJSON'](){return{'id':this['id'],'bundleVersion':this['bundleVersion'],'lastKnowVersion':this['lastKnowVersion']};}static['fromJSON'](_0x4fd078){return new CollaborativeEditingReconnectMessage(_0x4fd078['id'],_0x4fd078['lastKnowVersion'],_0x4fd078['bundleVersion']);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x35a8dd from'./../../message.js';import _0x308d3b from'./../helpers/operationmetadatahelpers.js';import _0x19085a from'../descriptors/operationmetadatadescriptor.js';export default class CollaborativeEditingUpdateMessage extends _0x35a8dd{['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(_0xb37aec,_0x570127,_0x50f4c,_0x34de06,_0x323be2=[],_0x56d86c=''){super(),this['id']=_0xb37aec,this['buffers']=_0x570127,this['types']=_0x50f4c,this['baseVersion']=_0x34de06,this['metadata']=_0x323be2,this['lastOperationId']=_0x56d86c;}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':_0x308d3b['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](_0x19085a['toJSON']),'lastOperationId':this['lastOperationId']};}static['fromJSON'](_0x406371){return new CollaborativeEditingUpdateMessage(_0x406371['id'],_0x406371['buffers'],_0x406371['types'],_0x406371['baseVersion'],_0x308d3b['prepareMetadataForOperations'](_0x406371['types'],_0x406371['metadata'])['map'](_0x19085a['fromJSON']),_0x406371['lastOperationId']);}}
23
+ import _0xff0e34 from'./../../message.js';import _0x31a0f8 from'./../helpers/operationmetadatahelpers.js';import _0x3c2496 from'../descriptors/operationmetadatadescriptor.js';export default class CollaborativeEditingUpdateMessage extends _0xff0e34{['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(_0x273596,_0x278ac3,_0x4da691,_0x60ba46,_0x1a9e99=[],_0xa9844d=''){super(),this['id']=_0x273596,this['buffers']=_0x278ac3,this['types']=_0x4da691,this['baseVersion']=_0x60ba46,this['metadata']=_0x1a9e99,this['lastOperationId']=_0xa9844d;}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':_0x31a0f8['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](_0x3c2496['toJSON']),'lastOperationId':this['lastOperationId']};}static['fromJSON'](_0x3ee8ac){return new CollaborativeEditingUpdateMessage(_0x3ee8ac['id'],_0x3ee8ac['buffers'],_0x3ee8ac['types'],_0x3ee8ac['baseVersion'],_0x31a0f8['prepareMetadataForOperations'](_0x3ee8ac['types'],_0x3ee8ac['metadata'])['map'](_0x3c2496['fromJSON']),_0x3ee8ac['lastOperationId']);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x21daac from'../../message.js';export default class GetDocumentDetailsMessage extends _0x21daac{['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(_0x867678){super(),this['documentId']=_0x867678;}get['data'](){return{'documentId':this['documentId']};}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x36a758){return new GetDocumentDetailsMessage(_0x36a758['documentId']);}}
23
+ import _0x4c879f from'../../message.js';export default class GetDocumentDetailsMessage extends _0x4c879f{['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(_0x14e4f0){super(),this['documentId']=_0x14e4f0;}get['data'](){return{'documentId':this['documentId']};}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x391002){return new GetDocumentDetailsMessage(_0x391002['documentId']);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x568ec4 from'./../../message.js';import _0x37abea from'./../helpers/operationmetadatahelpers.js';import _0x3ec3d2 from'../descriptors/operationmetadatadescriptor.js';export default class CollaborativeEditingConnectResponse extends _0x568ec4{['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':_0x3ec3d2['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(_0x33164a,_0x3839a4,_0x575c4c=[],_0x581cd7=[],_0x4bb57f=0x0,_0x50430c=[],_0x2b8e65=null,_0x1546a2='',_0x5d15da='',_0x465bff=null){super(),this['channel']=_0x33164a,this['version']=_0x3839a4,this['buffers']=_0x575c4c,this['types']=_0x581cd7,this['offset']=_0x4bb57f,this['metadata']=_0x50430c,this['initData']=_0x2b8e65,this['sessionId']=_0x1546a2,this['lastOperationId']=_0x5d15da,this['sessionCreatedAt']=_0x465bff;}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':_0x37abea['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](_0x3ec3d2['toJSON']),'initData':this['initData']??'','isInitialized':'string'==typeof this['initData'],'lastOperationId':this['lastOperationId'],'sessionCreatedAt':this['sessionCreatedAt']?this['sessionCreatedAt']['toISOString']():null};}static['create'](_0x68dd4a){return new CollaborativeEditingConnectResponse(_0x68dd4a['channel'],_0x68dd4a['version'],_0x68dd4a['buffers'],_0x68dd4a['types'],_0x68dd4a['offset'],_0x68dd4a['metadata'],_0x68dd4a['initData'],_0x68dd4a['sessionId'],_0x68dd4a['lastOperationId'],_0x68dd4a['sessionCreatedAt']);}static['fromJSON'](_0x3f9cc8){let _0x6abda2=null;return!0x0===_0x3f9cc8['isInitialized']?_0x6abda2=_0x3f9cc8['initData']??'':'boolean'!=typeof _0x3f9cc8['isInitialized']&&_0x3f9cc8['initData']&&(_0x6abda2=_0x3f9cc8['initData']),CollaborativeEditingConnectResponse['create']({'channel':_0x3f9cc8['channel'],'version':_0x3f9cc8['version'],'buffers':_0x3f9cc8['buffers'],'types':_0x3f9cc8['types'],'offset':_0x3f9cc8['offset'],'metadata':_0x37abea['prepareMetadataForOperations'](_0x3f9cc8['types'],_0x3f9cc8['metadata'])['map'](_0x3ec3d2['fromJSON']),'initData':_0x6abda2,'sessionId':_0x3f9cc8['sessionId'],'lastOperationId':_0x3f9cc8['lastOperationId'],'sessionCreatedAt':_0x3f9cc8['sessionCreatedAt']?new Date(_0x3f9cc8['sessionCreatedAt']):null});}}
23
+ import _0x427196 from'./../../message.js';import _0x36682e from'./../helpers/operationmetadatahelpers.js';import _0x4d656a from'../descriptors/operationmetadatadescriptor.js';export default class CollaborativeEditingConnectResponse extends _0x427196{['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':_0x4d656a['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(_0x4e26f0,_0x487972,_0x31982d=[],_0x32a791=[],_0x4077d0=0x0,_0x15ae05=[],_0x42e33a=null,_0x1f12a6='',_0x4aaa2a='',_0x27ccd8=null){super(),this['channel']=_0x4e26f0,this['version']=_0x487972,this['buffers']=_0x31982d,this['types']=_0x32a791,this['offset']=_0x4077d0,this['metadata']=_0x15ae05,this['initData']=_0x42e33a,this['sessionId']=_0x1f12a6,this['lastOperationId']=_0x4aaa2a,this['sessionCreatedAt']=_0x27ccd8;}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':_0x36682e['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](_0x4d656a['toJSON']),'initData':this['initData']??'','isInitialized':'string'==typeof this['initData'],'lastOperationId':this['lastOperationId'],'sessionCreatedAt':this['sessionCreatedAt']?this['sessionCreatedAt']['toISOString']():null};}static['create'](_0x56f2bb){return new CollaborativeEditingConnectResponse(_0x56f2bb['channel'],_0x56f2bb['version'],_0x56f2bb['buffers'],_0x56f2bb['types'],_0x56f2bb['offset'],_0x56f2bb['metadata'],_0x56f2bb['initData'],_0x56f2bb['sessionId'],_0x56f2bb['lastOperationId'],_0x56f2bb['sessionCreatedAt']);}static['fromJSON'](_0x49e342){let _0x415b81=null;return!0x0===_0x49e342['isInitialized']?_0x415b81=_0x49e342['initData']??'':'boolean'!=typeof _0x49e342['isInitialized']&&_0x49e342['initData']&&(_0x415b81=_0x49e342['initData']),CollaborativeEditingConnectResponse['create']({'channel':_0x49e342['channel'],'version':_0x49e342['version'],'buffers':_0x49e342['buffers'],'types':_0x49e342['types'],'offset':_0x49e342['offset'],'metadata':_0x36682e['prepareMetadataForOperations'](_0x49e342['types'],_0x49e342['metadata'])['map'](_0x4d656a['fromJSON']),'initData':_0x415b81,'sessionId':_0x49e342['sessionId'],'lastOperationId':_0x49e342['lastOperationId'],'sessionCreatedAt':_0x49e342['sessionCreatedAt']?new Date(_0x49e342['sessionCreatedAt']):null});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x30d335 from'./../../message.js';import _0x249b75 from'./../helpers/operationmetadatahelpers.js';import _0x4b1538 from'../descriptors/operationmetadatadescriptor.js';export default class CollaborativeEditingResponse extends _0x30d335{['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(_0x336343,_0x264fcd=[],_0x4c1de2=[],_0x2e64cf=[],_0x440c0a='',_0x54642d=null){super(),this['version']=_0x336343,this['buffers']=_0x264fcd,this['types']=_0x4c1de2,this['metadata']=_0x2e64cf,this['lastOperationId']=_0x440c0a,this['lastOperationAcceptedAt']=_0x54642d;}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':_0x249b75['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](_0x4b1538['toJSON']),'lastOperationId':this['lastOperationId'],'lastOperationAcceptedAt':this['lastOperationAcceptedAt']instanceof Date?this['lastOperationAcceptedAt']['toISOString']():this['lastOperationAcceptedAt']};}static['fromJSON'](_0x6085ac){return new CollaborativeEditingResponse(_0x6085ac['version'],_0x6085ac['buffers'],_0x6085ac['types'],_0x249b75['prepareMetadataForOperations'](_0x6085ac['types'],_0x6085ac['metadata'])['map'](_0x4b1538['fromJSON']),_0x6085ac['lastOperationId'],_0x6085ac['lastOperationAcceptedAt']?new Date(_0x6085ac['lastOperationAcceptedAt']):null);}static['create'](_0x13f07d){return new CollaborativeEditingResponse(_0x13f07d['version'],_0x13f07d['buffers'],_0x13f07d['types'],_0x13f07d['metadata'],_0x13f07d['lastOperationId'],_0x13f07d['lastOperationAcceptedAt']?new Date(_0x13f07d['lastOperationAcceptedAt']):null);}}
23
+ import _0xe3645 from'./../../message.js';import _0x26d993 from'./../helpers/operationmetadatahelpers.js';import _0x38a36d from'../descriptors/operationmetadatadescriptor.js';export default class CollaborativeEditingResponse extends _0xe3645{['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(_0x245fe9,_0x5cde77=[],_0xdc6784=[],_0x277ddf=[],_0x3b8ed4='',_0x1c8192=null){super(),this['version']=_0x245fe9,this['buffers']=_0x5cde77,this['types']=_0xdc6784,this['metadata']=_0x277ddf,this['lastOperationId']=_0x3b8ed4,this['lastOperationAcceptedAt']=_0x1c8192;}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':_0x26d993['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](_0x38a36d['toJSON']),'lastOperationId':this['lastOperationId'],'lastOperationAcceptedAt':this['lastOperationAcceptedAt']instanceof Date?this['lastOperationAcceptedAt']['toISOString']():this['lastOperationAcceptedAt']};}static['fromJSON'](_0x444b4d){return new CollaborativeEditingResponse(_0x444b4d['version'],_0x444b4d['buffers'],_0x444b4d['types'],_0x26d993['prepareMetadataForOperations'](_0x444b4d['types'],_0x444b4d['metadata'])['map'](_0x38a36d['fromJSON']),_0x444b4d['lastOperationId'],_0x444b4d['lastOperationAcceptedAt']?new Date(_0x444b4d['lastOperationAcceptedAt']):null);}static['create'](_0x412cb1){return new CollaborativeEditingResponse(_0x412cb1['version'],_0x412cb1['buffers'],_0x412cb1['types'],_0x412cb1['metadata'],_0x412cb1['lastOperationId'],_0x412cb1['lastOperationAcceptedAt']?new Date(_0x412cb1['lastOperationAcceptedAt']):null);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x38b901 from'./../../message.js';export default class GetDocumentDetailsResponse extends _0x38b901{['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(_0x4492cf,_0x520f46){super(),this['lastDocumentSession']=_0x4492cf,this['currentDocumentSession']=_0x520f46;}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'](_0x34e80c){const _0x49116b=_0x34e80c['lastDocumentSessionId']?{'id':_0x34e80c['lastDocumentSessionId'],'lastOperationId':_0x34e80c['lastDocumentSessionOperationId']}:void 0x0,_0x42899f=_0x34e80c['currentDocumentSessionId']?{'lastOperationId':_0x34e80c['currentDocumentSessionOperationId'],'version':_0x34e80c['currentDocumentSessionVersion'],'id':_0x34e80c['currentDocumentSessionId']}:void 0x0;return new GetDocumentDetailsResponse(_0x49116b,_0x42899f);}}
23
+ import _0xf1d9c0 from'./../../message.js';export default class GetDocumentDetailsResponse extends _0xf1d9c0{['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(_0x3a19fe,_0x3aa746){super(),this['lastDocumentSession']=_0x3a19fe,this['currentDocumentSession']=_0x3aa746;}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'](_0x65031e){const _0x5068a4=_0x65031e['lastDocumentSessionId']?{'id':_0x65031e['lastDocumentSessionId'],'lastOperationId':_0x65031e['lastDocumentSessionOperationId']}:void 0x0,_0x4f558b=_0x65031e['currentDocumentSessionId']?{'lastOperationId':_0x65031e['currentDocumentSessionOperationId'],'version':_0x65031e['currentDocumentSessionVersion'],'id':_0x65031e['currentDocumentSessionId']}:void 0x0;return new GetDocumentDetailsResponse(_0x5068a4,_0x4f558b);}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{EmitterMixin}from'ckeditor5/src/utils.js';import _0x1ff0da from'./../messagescompressor.js';import _0x2357e3 from'./messages/addcommentmessage.js';import _0x22c998 from'./responses/addcommentresponse.js';import _0x49f1ff from'./messages/connectmessage.js';import _0x1c99cc from'./responses/connectresponse.js';import _0x4fcc3c from'./messages/removecommentmessage.js';import _0x165f36 from'./messages/removecommentthreadmessage.js';import _0x5df95a from'./messages/updatecommentmessage.js';import _0x354a41 from'./messages/getcommentthreadmessage.js';import _0x34ecfc from'./responses/getcommentthreadresponse.js';import _0x146cde from'./messages/getdocumentthreadsmessage.js';import _0x3ce167 from'./responses/getdocumentthreadsresponse.js';import _0x3b5a2f,{WEB_SOCKET_GATEWAY_STATES}from'./../websocketgateway/websocketgateway.js';import _0x4d7295 from'./../ckeditorcloudserviceserror.js';import _0xb85b7d from'../sessions/sessions.js';import _0x41de25 from'../errors/ServiceNotConnectedError.js';import _0x35c643 from'../ckeditorcloudservicesservererror.js';import _0x34d83d from'./responses/comment-threads/addcommentthreadresponse.js';import _0x315ae8 from'./messages/comment-threads/addcommentthreadmessage.js';import _0x4d5100 from'./messages/comment-threads/resolvecommentthreadmessage.js';import _0x43b75c from'./messages/comment-threads/reopencommentthreadmessage.js';import _0x1a73a6 from'./messages/comment-threads/updatecommentthreadmessage.js';import _0x1adb18 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(_0x4c54a7){super(),this['_documentId']=_0x4c54a7;}get['isConnected'](){return this['_isConnected'];}async['connect'](_0x39b38c){if(this['_isConnected'])return;if(_0x39b38c['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new _0x4d7295('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x39b38c);const _0x44d49f=new _0x49f1ff(this['_documentId']);this['_wsGateway']=_0x39b38c,this['stopListening'](_0x39b38c,'change:state');const _0x449596=await _0x39b38c['_sendRequest'](0x9,_0x49f1ff['TYPE'],_0x1ff0da['encode'](_0x44d49f)),{channel:_0xad1dc4,threads:_0x122a15}=_0x1ff0da['decode'](_0x449596,_0x1c99cc);return this['listenTo'](_0x39b38c,'change:state',(_0x10ba42,_0x588a8e,_0x5d4040)=>this['_onWsGatewayStateChange'](_0x5d4040),{'priority':_0x3b5a2f['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0x39b38c,_0xad1dc4),this['_isConnected']=!0x0,this['fire']('connected'),_0x122a15;}['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'](_0x2a980a,_0x50c2c8,_0x1d287d,_0x184051){const _0x2e4aae=new _0x2357e3(this['_documentId'],_0x2a980a,_0x1d287d,_0x50c2c8,void 0x0,void 0x0,_0x184051),_0x4a736d=await this['_sendRequest'](_0x2357e3['TYPE'],_0x2e4aae);return _0x1ff0da['decode'](_0x4a736d,_0x22c998);}async['updateComment'](_0x3f8068,_0xa9c251,_0x427c1b,_0x2163dc){const _0x246cfb=void 0x0!==_0x2163dc,_0x4f54fc=new _0x5df95a(this['_documentId'],_0x3f8068,_0xa9c251,_0x427c1b,_0x2163dc,_0x246cfb);await this['_sendRequest'](_0x5df95a['TYPE'],_0x4f54fc);}async['removeComment'](_0xdae74e,_0x27ecbb){const _0x3e687e=new _0x4fcc3c(this['_documentId'],_0xdae74e,_0x27ecbb);await this['_sendRequest'](_0x4fcc3c['TYPE'],_0x3e687e);}async['removeCommentThread'](_0x4b4e44){const _0x592cd9=new _0x165f36(this['_documentId'],_0x4b4e44);await this['_sendRequest'](_0x165f36['TYPE'],_0x592cd9);}async['addCommentThread'](_0x1f14f7){const _0x10e022=new _0x315ae8(this['_documentId'],_0x1f14f7['commentThreadId'],_0x1f14f7['comments']?.['map'](_0x51068e=>({..._0x51068e,'documentId':this['_documentId'],'commentThreadId':_0x1f14f7['commentThreadId']})),_0x1f14f7['context'],_0x1f14f7['resolvedBy'],_0x1f14f7['createdAt'],_0x1f14f7['resolvedAt'],_0x1f14f7['deletedAt'],_0x1f14f7['attributes']),_0x4c3d51=await this['_sendRequest'](_0x315ae8['TYPE'],_0x10e022);return _0x1ff0da['decode'](_0x4c3d51,_0x34d83d);}async['resolveCommentThread'](_0x4940b2){const _0x5ad797=new _0x4d5100(_0x4940b2,this['_documentId']),_0xb54a8c=await this['_sendRequest'](_0x4d5100['TYPE'],_0x5ad797);return _0x1ff0da['decode'](_0xb54a8c,_0x1adb18);}async['reopenCommentThread'](_0x3babf6){const _0x551d61=new _0x43b75c(_0x3babf6,this['_documentId']);await this['_sendRequest'](_0x43b75c['TYPE'],_0x551d61);}async['updateCommentThread'](_0x2fcf98){const _0x26c1f3=new _0x1a73a6(_0x2fcf98['commentThreadId'],this['_documentId'],_0x2fcf98['context'],_0x2fcf98['attributes'],_0x2fcf98['unlinkedAt']);await this['_sendRequest'](_0x1a73a6['TYPE'],_0x26c1f3);}async['getCommentThread'](_0x17bc93,_0x11ba04=0x1){const _0x32787a=new _0x354a41(_0x17bc93,this['_documentId']);try{const _0x5a4fb9=await this['_sendRequest'](_0x354a41['TYPE'],_0x32787a),_0x41eba6=_0x1ff0da['decode'](_0x5a4fb9,_0x34ecfc);return{'commentThreadId':_0x41eba6['commentThreadId'],'comments':_0x41eba6['comments'],'attributes':_0x41eba6['attributes'],'context':_0x41eba6['context'],'resolvedAt':_0x41eba6['resolvedAt'],'resolvedBy':_0x41eba6['resolvedBy'],'deletedAt':_0x41eba6['deletedAt'],'unlinkedAt':_0x41eba6['unlinkedAt']};}catch(_0x5a85cf){if('CKEditorCloudServicesServerError'===_0x5a85cf['name']&&'404'===_0x5a85cf['code']&&_0x11ba04<0x5)return await(_0x32ee43=0x64*_0x11ba04,new Promise(_0x174395=>{setTimeout(_0x174395,_0x32ee43);})),this['getCommentThread'](_0x17bc93,_0x11ba04+0x1);if('CKEditorCloudServicesServerError'===_0x5a85cf['name'])throw _0x5a85cf;throw _0x35c643['fromPublicError'](_0x5a85cf);}var _0x32ee43;}async['getDocumentThreads'](){const _0x3d7802=new _0x146cde(this['_documentId']),_0x169c78=await this['_sendRequest'](_0x146cde['TYPE'],_0x3d7802),{threads:_0x644cb3}=_0x1ff0da['decode'](_0x169c78,_0x3ce167);return{'threads':_0x644cb3};}async['getConnectedSessions'](){if(!this['_isConnected'])throw new _0x41de25('Comments',this);return this['_connectedSessions']||(this['_connectedSessions']=await _0xb85b7d['getConnectedSessions'](this['_wsGateway'],this['_documentId'],0x9)),this['_connectedSessions'];}['_connectToChannel'](_0x936cb3,_0x56089b){this['_channel']=_0x936cb3['_getChannel'](CommentsService['_SERVICE'],_0x56089b),this['_channel']&&(this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x2357e3['TYPE']),(_0x54faeb,_0x34747c)=>{const _0x93afd3=_0x1ff0da['decode'](_0x34747c,_0x2357e3);this['fire']('commentAdded',_0x93afd3);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x4fcc3c['TYPE']),(_0x50d236,_0xea2cb8)=>{const _0x481cca=_0x1ff0da['decode'](_0xea2cb8,_0x4fcc3c);this['fire']('commentRemoved',_0x481cca);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x5df95a['TYPE']),(_0x38dd77,_0x363a23)=>{const _0x549373=_0x1ff0da['decode'](_0x363a23,_0x5df95a);this['fire']('commentUpdated',_0x549373);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x165f36['TYPE']),(_0x36e646,_0x584059)=>{const _0x52eff7=_0x1ff0da['decode'](_0x584059,_0x165f36);this['fire']('commentThreadRemoved',_0x52eff7);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x315ae8['TYPE']),(_0x4f30b2,_0x5a1d0d)=>{const _0x26abcb=_0x1ff0da['decode'](_0x5a1d0d,_0x315ae8);this['fire']('commentThreadAdded',_0x26abcb);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x1a73a6['TYPE']),(_0x15d282,_0x2aa7ca)=>{const _0x593cf9=_0x1ff0da['decode'](_0x2aa7ca,_0x1a73a6);this['fire']('commentThreadUpdated',_0x593cf9);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x4d5100['TYPE']),(_0x419738,_0x3a99d7)=>{const _0x248fb0=_0x1ff0da['decode'](_0x3a99d7,_0x4d5100);this['fire']('commentThreadResolved',_0x248fb0);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x43b75c['TYPE']),(_0xfdb4df,_0x5218dd)=>{const _0x1433eb=_0x1ff0da['decode'](_0x5218dd,_0x43b75c);this['fire']('commentThreadReopened',_0x1433eb);}));}['_onWsGatewayStateChange'](_0x287512){_0x287512===WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['disconnect']();}['_sendRequest'](_0x43fee7,_0x7cb1ec){if(!this['_wsGateway']||!this['_isConnected'])throw new _0x41de25('Comments',this);return this['_wsGateway']['_sendRequest'](0x9,_0x43fee7,_0x1ff0da['encode'](_0x7cb1ec));}}export default CommentsService;
23
+ import{EmitterMixin}from'ckeditor5/src/utils.js';import _0x2ef3f5 from'./../messagescompressor.js';import _0x1cae09 from'./messages/addcommentmessage.js';import _0x306f17 from'./responses/addcommentresponse.js';import _0x466af7 from'./messages/connectmessage.js';import _0x174710 from'./responses/connectresponse.js';import _0x1ff3d0 from'./messages/removecommentmessage.js';import _0x2b063a from'./messages/removecommentthreadmessage.js';import _0x529cae from'./messages/updatecommentmessage.js';import _0x3d2cb5 from'./messages/getcommentthreadmessage.js';import _0x2abefb from'./responses/getcommentthreadresponse.js';import _0x5ec89c from'./messages/getdocumentthreadsmessage.js';import _0x48bd44 from'./responses/getdocumentthreadsresponse.js';import _0x38379b,{WEB_SOCKET_GATEWAY_STATES}from'./../websocketgateway/websocketgateway.js';import _0x162cc3 from'./../ckeditorcloudserviceserror.js';import _0x35b486 from'../sessions/sessions.js';import _0x35cad8 from'../errors/ServiceNotConnectedError.js';import _0x21521a from'../ckeditorcloudservicesservererror.js';import _0x3b642d from'./responses/comment-threads/addcommentthreadresponse.js';import _0x1f3dcb from'./messages/comment-threads/addcommentthreadmessage.js';import _0x2fe01f from'./messages/comment-threads/resolvecommentthreadmessage.js';import _0x26ce46 from'./messages/comment-threads/reopencommentthreadmessage.js';import _0x50c3a9 from'./messages/comment-threads/updatecommentthreadmessage.js';import _0x558d84 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(_0xdab52){super(),this['_documentId']=_0xdab52;}get['isConnected'](){return this['_isConnected'];}async['connect'](_0x57c221){if(this['_isConnected'])return;if(_0x57c221['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new _0x162cc3('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x57c221);const _0x4327a8=new _0x466af7(this['_documentId']);this['_wsGateway']=_0x57c221,this['stopListening'](_0x57c221,'change:state');const _0x1dabb3=await _0x57c221['_sendRequest'](0x9,_0x466af7['TYPE'],_0x2ef3f5['encode'](_0x4327a8)),{channel:_0x169828,threads:_0x50e4da}=_0x2ef3f5['decode'](_0x1dabb3,_0x174710);return this['listenTo'](_0x57c221,'change:state',(_0x2e54d7,_0x1f178e,_0xe5d260)=>this['_onWsGatewayStateChange'](_0xe5d260),{'priority':_0x38379b['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0x57c221,_0x169828),this['_isConnected']=!0x0,this['fire']('connected'),_0x50e4da;}['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'](_0xa8f94b,_0x17990d,_0x3d445b,_0x2afb94){const _0x26d6d1=new _0x1cae09(this['_documentId'],_0xa8f94b,_0x3d445b,_0x17990d,void 0x0,void 0x0,_0x2afb94),_0x1bf68c=await this['_sendRequest'](_0x1cae09['TYPE'],_0x26d6d1);return _0x2ef3f5['decode'](_0x1bf68c,_0x306f17);}async['updateComment'](_0x24f27b,_0x16abb3,_0x6b2750,_0x165347){const _0x3e7ea4=void 0x0!==_0x165347,_0x1821c0=new _0x529cae(this['_documentId'],_0x24f27b,_0x16abb3,_0x6b2750,_0x165347,_0x3e7ea4);await this['_sendRequest'](_0x529cae['TYPE'],_0x1821c0);}async['removeComment'](_0x45c1cf,_0x3b1d40){const _0x230db1=new _0x1ff3d0(this['_documentId'],_0x45c1cf,_0x3b1d40);await this['_sendRequest'](_0x1ff3d0['TYPE'],_0x230db1);}async['removeCommentThread'](_0x5b333f){const _0x2568f1=new _0x2b063a(this['_documentId'],_0x5b333f);await this['_sendRequest'](_0x2b063a['TYPE'],_0x2568f1);}async['addCommentThread'](_0x38b11c){const _0x4c7336=new _0x1f3dcb(this['_documentId'],_0x38b11c['commentThreadId'],_0x38b11c['comments']?.['map'](_0x22b81f=>({..._0x22b81f,'documentId':this['_documentId'],'commentThreadId':_0x38b11c['commentThreadId']})),_0x38b11c['context'],_0x38b11c['resolvedBy'],_0x38b11c['createdAt'],_0x38b11c['resolvedAt'],_0x38b11c['deletedAt'],_0x38b11c['attributes']),_0x1f2e60=await this['_sendRequest'](_0x1f3dcb['TYPE'],_0x4c7336);return _0x2ef3f5['decode'](_0x1f2e60,_0x3b642d);}async['resolveCommentThread'](_0x1f4bfa){const _0x23a796=new _0x2fe01f(_0x1f4bfa,this['_documentId']),_0x98efd0=await this['_sendRequest'](_0x2fe01f['TYPE'],_0x23a796);return _0x2ef3f5['decode'](_0x98efd0,_0x558d84);}async['reopenCommentThread'](_0x1bd029){const _0x198fbf=new _0x26ce46(_0x1bd029,this['_documentId']);await this['_sendRequest'](_0x26ce46['TYPE'],_0x198fbf);}async['updateCommentThread'](_0x499785){const _0x11c4dc=new _0x50c3a9(_0x499785['commentThreadId'],this['_documentId'],_0x499785['context'],_0x499785['attributes'],_0x499785['unlinkedAt']);await this['_sendRequest'](_0x50c3a9['TYPE'],_0x11c4dc);}async['getCommentThread'](_0x524705,_0x42b576=0x1){const _0x12a8df=new _0x3d2cb5(_0x524705,this['_documentId']);try{const _0xfb1c4a=await this['_sendRequest'](_0x3d2cb5['TYPE'],_0x12a8df),_0xe5aa0f=_0x2ef3f5['decode'](_0xfb1c4a,_0x2abefb);return{'commentThreadId':_0xe5aa0f['commentThreadId'],'comments':_0xe5aa0f['comments'],'attributes':_0xe5aa0f['attributes'],'context':_0xe5aa0f['context'],'resolvedAt':_0xe5aa0f['resolvedAt'],'resolvedBy':_0xe5aa0f['resolvedBy'],'deletedAt':_0xe5aa0f['deletedAt'],'unlinkedAt':_0xe5aa0f['unlinkedAt']};}catch(_0xc17ad2){if('CKEditorCloudServicesServerError'===_0xc17ad2['name']&&'404'===_0xc17ad2['code']&&_0x42b576<0x5)return await(_0x128524=0x64*_0x42b576,new Promise(_0x380ea4=>{setTimeout(_0x380ea4,_0x128524);})),this['getCommentThread'](_0x524705,_0x42b576+0x1);if('CKEditorCloudServicesServerError'===_0xc17ad2['name'])throw _0xc17ad2;throw _0x21521a['fromPublicError'](_0xc17ad2);}var _0x128524;}async['getDocumentThreads'](){const _0x3c4d0a=new _0x5ec89c(this['_documentId']),_0x184578=await this['_sendRequest'](_0x5ec89c['TYPE'],_0x3c4d0a),{threads:_0x3e726b}=_0x2ef3f5['decode'](_0x184578,_0x48bd44);return{'threads':_0x3e726b};}async['getConnectedSessions'](){if(!this['_isConnected'])throw new _0x35cad8('Comments',this);return this['_connectedSessions']||(this['_connectedSessions']=await _0x35b486['getConnectedSessions'](this['_wsGateway'],this['_documentId'],0x9)),this['_connectedSessions'];}['_connectToChannel'](_0x2e41f9,_0x3ca87e){this['_channel']=_0x2e41f9['_getChannel'](CommentsService['_SERVICE'],_0x3ca87e),this['_channel']&&(this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x1cae09['TYPE']),(_0x4a3bef,_0x7d5ac1)=>{const _0x17aa68=_0x2ef3f5['decode'](_0x7d5ac1,_0x1cae09);this['fire']('commentAdded',_0x17aa68);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x1ff3d0['TYPE']),(_0x2c1d24,_0x258c96)=>{const _0x165723=_0x2ef3f5['decode'](_0x258c96,_0x1ff3d0);this['fire']('commentRemoved',_0x165723);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x529cae['TYPE']),(_0x311677,_0x188bc4)=>{const _0x15ae4f=_0x2ef3f5['decode'](_0x188bc4,_0x529cae);this['fire']('commentUpdated',_0x15ae4f);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x2b063a['TYPE']),(_0x17fcba,_0x30b6b0)=>{const _0x1141d4=_0x2ef3f5['decode'](_0x30b6b0,_0x2b063a);this['fire']('commentThreadRemoved',_0x1141d4);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x1f3dcb['TYPE']),(_0x31f7a4,_0x1f02af)=>{const _0x1421db=_0x2ef3f5['decode'](_0x1f02af,_0x1f3dcb);this['fire']('commentThreadAdded',_0x1421db);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x50c3a9['TYPE']),(_0x326197,_0x4d1de7)=>{const _0x5de4fb=_0x2ef3f5['decode'](_0x4d1de7,_0x50c3a9);this['fire']('commentThreadUpdated',_0x5de4fb);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x2fe01f['TYPE']),(_0x38de7a,_0x2b314c)=>{const _0x533634=_0x2ef3f5['decode'](_0x2b314c,_0x2fe01f);this['fire']('commentThreadResolved',_0x533634);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x26ce46['TYPE']),(_0x2fc372,_0x220401)=>{const _0x2ee372=_0x2ef3f5['decode'](_0x220401,_0x26ce46);this['fire']('commentThreadReopened',_0x2ee372);}));}['_onWsGatewayStateChange'](_0x30b8e9){_0x30b8e9===WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['disconnect']();}['_sendRequest'](_0x3f4002,_0x441b24){if(!this['_wsGateway']||!this['_isConnected'])throw new _0x35cad8('Comments',this);return this['_wsGateway']['_sendRequest'](0x9,_0x3f4002,_0x2ef3f5['encode'](_0x441b24));}}export default CommentsService;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x194dd7 from'./../../descriptor.js';export default class CommentDescriptor extends _0x194dd7{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'](_0x41f18f){return{..._0x41f18f,'createdAt':_0x41f18f['createdAt']?.['toISOString'](),'attributes':_0x41f18f['attributes']?JSON['stringify'](_0x41f18f['attributes']):null};}static['fromJSON'](_0x3fc1cc){return{..._0x3fc1cc,'createdAt':new Date(_0x3fc1cc['createdAt']),'attributes':_0x3fc1cc['attributes']?JSON['parse'](_0x3fc1cc['attributes']):null};}}
23
+ import _0x4fc40b from'./../../descriptor.js';export default class CommentDescriptor extends _0x4fc40b{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'](_0x35c27f){return{..._0x35c27f,'createdAt':_0x35c27f['createdAt']?.['toISOString'](),'attributes':_0x35c27f['attributes']?JSON['stringify'](_0x35c27f['attributes']):null};}static['fromJSON'](_0x1192d2){return{..._0x1192d2,'createdAt':new Date(_0x1192d2['createdAt']),'attributes':_0x1192d2['attributes']?JSON['parse'](_0x1192d2['attributes']):null};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x289dc5 from'./../../descriptor.js';import _0x100c9a from'./commentdescriptor.js';export default class CommentsThreadDescriptor extends _0x289dc5{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'](_0x231f36){return{..._0x231f36,'createdAt':_0x231f36['createdAt']?.['toISOString'](),'deletedAt':_0x231f36['deletedAt']?.['toISOString'](),'resolvedAt':_0x231f36['resolvedAt']?.['toISOString'](),'attributes':_0x231f36['attributes']?JSON['stringify'](_0x231f36['attributes']):null,'context':_0x231f36['context']?JSON['stringify'](_0x231f36['context']):_0x231f36['context'],'comments':_0x231f36['comments']?.['map'](_0x100c9a['toJSON']),'unlinkedAt':_0x231f36['unlinkedAt']?.['toISOString']()};}static['fromJSON'](_0x2af7ba){return{..._0x2af7ba,'createdAt':_0x2af7ba['createdAt']?new Date(_0x2af7ba['createdAt']):void 0x0,'deletedAt':_0x2af7ba['deletedAt']?new Date(_0x2af7ba['deletedAt']):void 0x0,'resolvedAt':_0x2af7ba['resolvedAt']?new Date(_0x2af7ba['resolvedAt']):void 0x0,'attributes':_0x2af7ba['attributes']?JSON['parse'](_0x2af7ba['attributes']):null,'context':_0x2af7ba['context']?JSON['parse'](_0x2af7ba['context']):void 0x0,'comments':_0x2af7ba['comments']?.['map'](_0x100c9a['fromJSON']),'unlinkedAt':_0x2af7ba['unlinkedAt']?new Date(_0x2af7ba['unlinkedAt']):void 0x0};}}
23
+ import _0x188450 from'./../../descriptor.js';import _0x1813e6 from'./commentdescriptor.js';export default class CommentsThreadDescriptor extends _0x188450{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'](_0x4270ed){return{..._0x4270ed,'createdAt':_0x4270ed['createdAt']?.['toISOString'](),'deletedAt':_0x4270ed['deletedAt']?.['toISOString'](),'resolvedAt':_0x4270ed['resolvedAt']?.['toISOString'](),'attributes':_0x4270ed['attributes']?JSON['stringify'](_0x4270ed['attributes']):null,'context':_0x4270ed['context']?JSON['stringify'](_0x4270ed['context']):_0x4270ed['context'],'comments':_0x4270ed['comments']?.['map'](_0x1813e6['toJSON']),'unlinkedAt':_0x4270ed['unlinkedAt']?.['toISOString']()};}static['fromJSON'](_0x550b57){return{..._0x550b57,'createdAt':_0x550b57['createdAt']?new Date(_0x550b57['createdAt']):void 0x0,'deletedAt':_0x550b57['deletedAt']?new Date(_0x550b57['deletedAt']):void 0x0,'resolvedAt':_0x550b57['resolvedAt']?new Date(_0x550b57['resolvedAt']):void 0x0,'attributes':_0x550b57['attributes']?JSON['parse'](_0x550b57['attributes']):null,'context':_0x550b57['context']?JSON['parse'](_0x550b57['context']):void 0x0,'comments':_0x550b57['comments']?.['map'](_0x1813e6['fromJSON']),'unlinkedAt':_0x550b57['unlinkedAt']?new Date(_0x550b57['unlinkedAt']):void 0x0};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x15b2d6 from'../../descriptor.js';export default class CommentThreadAddedCommentDescriptor extends _0x15b2d6{static ['DESCRIPTOR_NAME']='CommentThreadAddedCommentDescriptor';static ['DESCRIPTOR']={'fields':{'commentId':{'id':0x1,'type':'string'},'createdAt':{'id':0x2,'type':'string'}}};static['toJSON'](_0x4f5ee3){return{'commentId':_0x4f5ee3['commentId'],'createdAt':_0x4f5ee3['createdAt']?.['toISOString']()};}static['fromJSON'](_0x5c0e3d){return{'commentId':_0x5c0e3d['commentId'],'createdAt':new Date(_0x5c0e3d['createdAt'])};}}
23
+ import _0x44094c from'../../descriptor.js';export default class CommentThreadAddedCommentDescriptor extends _0x44094c{static ['DESCRIPTOR_NAME']='CommentThreadAddedCommentDescriptor';static ['DESCRIPTOR']={'fields':{'commentId':{'id':0x1,'type':'string'},'createdAt':{'id':0x2,'type':'string'}}};static['toJSON'](_0x1b373f){return{'commentId':_0x1b373f['commentId'],'createdAt':_0x1b373f['createdAt']?.['toISOString']()};}static['fromJSON'](_0x5ba3ee){return{'commentId':_0x5ba3ee['commentId'],'createdAt':new Date(_0x5ba3ee['createdAt'])};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x195559 from'./../../message.js';import _0x5a146b from'../descriptors/commentsthreaddescriptor.js';export default class AddCommentMessage extends _0x195559{['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(_0x364ca7,_0x54e1a6,_0x521bc4,_0x1183ae='',_0x556bb9,_0xfa082='',_0xd2ea23=null,_0x3389b3){super(),this['documentId']=_0x364ca7,this['commentThreadId']=_0x54e1a6,this['content']=_0x521bc4,this['commentId']=_0x1183ae,this['userId']=_0xfa082,this['attributes']=_0xd2ea23,this['commentThread']=_0x3389b3,this['createdAt']=_0x556bb9?new Date(_0x556bb9):'';}['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']?_0x5a146b['toJSON'](this['commentThread']):void 0x0};}static['fromJSON'](_0x18b0a7){return new AddCommentMessage(_0x18b0a7['documentId'],_0x18b0a7['commentThreadId'],_0x18b0a7['content'],_0x18b0a7['commentId']?_0x18b0a7['commentId']:void 0x0,_0x18b0a7['createdAt']?new Date(_0x18b0a7['createdAt']):void 0x0,_0x18b0a7['userId']?_0x18b0a7['userId']:void 0x0,_0x18b0a7['attributes']?JSON['parse'](_0x18b0a7['attributes']):{},_0x18b0a7['commentThread']?_0x5a146b['fromJSON'](_0x18b0a7['commentThread']):void 0x0);}}
23
+ import _0x48b606 from'./../../message.js';import _0x12662c from'../descriptors/commentsthreaddescriptor.js';export default class AddCommentMessage extends _0x48b606{['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(_0x216cdc,_0x30c1a7,_0x1cb911,_0x56db37='',_0x40e8dd,_0x2eedb8='',_0x554e9f=null,_0x1df2a5){super(),this['documentId']=_0x216cdc,this['commentThreadId']=_0x30c1a7,this['content']=_0x1cb911,this['commentId']=_0x56db37,this['userId']=_0x2eedb8,this['attributes']=_0x554e9f,this['commentThread']=_0x1df2a5,this['createdAt']=_0x40e8dd?new Date(_0x40e8dd):'';}['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']?_0x12662c['toJSON'](this['commentThread']):void 0x0};}static['fromJSON'](_0x2e9f5b){return new AddCommentMessage(_0x2e9f5b['documentId'],_0x2e9f5b['commentThreadId'],_0x2e9f5b['content'],_0x2e9f5b['commentId']?_0x2e9f5b['commentId']:void 0x0,_0x2e9f5b['createdAt']?new Date(_0x2e9f5b['createdAt']):void 0x0,_0x2e9f5b['userId']?_0x2e9f5b['userId']:void 0x0,_0x2e9f5b['attributes']?JSON['parse'](_0x2e9f5b['attributes']):{},_0x2e9f5b['commentThread']?_0x12662c['fromJSON'](_0x2e9f5b['commentThread']):void 0x0);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x2cc3e3 from'../../../message.js';import _0x1287b7 from'../../descriptors/commentdescriptor.js';export default class AddCommentThreadMessage extends _0x2cc3e3{['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(_0x53bb2a,_0xdf52ce,_0x2eb460=[],_0x27eabf,_0x5d44ba=null,_0x19cd74=null,_0x5cab1c=null,_0x3c9946=null,_0xa6a5e=null){super(),this['documentId']=_0x53bb2a,this['commentThreadId']=_0xdf52ce,this['comments']=_0x2eb460,this['context']=_0x27eabf,this['resolvedBy']=_0x5d44ba,this['attributes']=_0xa6a5e,this['createdAt']=_0x19cd74?new Date(_0x19cd74):'',this['resolvedAt']=_0x5cab1c?new Date(_0x5cab1c):'',this['deletedAt']=_0x3c9946?new Date(_0x3c9946):'';}['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'](_0x3223b7=>_0x1287b7['toJSON'](_0x3223b7))};}static['fromJSON'](_0x27cd42){return new AddCommentThreadMessage(_0x27cd42['documentId'],_0x27cd42['commentThreadId'],_0x27cd42['comments']?.['map'](_0x52a871=>_0x1287b7['fromJSON']({..._0x52a871,'documentId':_0x27cd42['documentId'],'commentThreadId':_0x27cd42['commentThreadId']})),_0x27cd42['context']?JSON['parse'](_0x27cd42['context']):_0x27cd42['context'],_0x27cd42['resolvedBy'],_0x27cd42['createdAt']?new Date(_0x27cd42['createdAt']):void 0x0,_0x27cd42['resolvedAt']?new Date(_0x27cd42['resolvedAt']):void 0x0,_0x27cd42['deletedAt']?new Date(_0x27cd42['deletedAt']):void 0x0,_0x27cd42['attributes']?JSON['parse'](_0x27cd42['attributes']):_0x27cd42['attributes']);}}
23
+ import _0x5956d0 from'../../../message.js';import _0x471708 from'../../descriptors/commentdescriptor.js';export default class AddCommentThreadMessage extends _0x5956d0{['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(_0x13e3b4,_0x38dd17,_0x3b9361=[],_0x590316,_0x54eefe=null,_0xdb5f33=null,_0xb6270e=null,_0x26f953=null,_0x11c411=null){super(),this['documentId']=_0x13e3b4,this['commentThreadId']=_0x38dd17,this['comments']=_0x3b9361,this['context']=_0x590316,this['resolvedBy']=_0x54eefe,this['attributes']=_0x11c411,this['createdAt']=_0xdb5f33?new Date(_0xdb5f33):'',this['resolvedAt']=_0xb6270e?new Date(_0xb6270e):'',this['deletedAt']=_0x26f953?new Date(_0x26f953):'';}['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'](_0x154929=>_0x471708['toJSON'](_0x154929))};}static['fromJSON'](_0x52b782){return new AddCommentThreadMessage(_0x52b782['documentId'],_0x52b782['commentThreadId'],_0x52b782['comments']?.['map'](_0x15e90e=>_0x471708['fromJSON']({..._0x15e90e,'documentId':_0x52b782['documentId'],'commentThreadId':_0x52b782['commentThreadId']})),_0x52b782['context']?JSON['parse'](_0x52b782['context']):_0x52b782['context'],_0x52b782['resolvedBy'],_0x52b782['createdAt']?new Date(_0x52b782['createdAt']):void 0x0,_0x52b782['resolvedAt']?new Date(_0x52b782['resolvedAt']):void 0x0,_0x52b782['deletedAt']?new Date(_0x52b782['deletedAt']):void 0x0,_0x52b782['attributes']?JSON['parse'](_0x52b782['attributes']):_0x52b782['attributes']);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x456c26 from'../../../message.js';export default class ReopenCommentThreadMessage extends _0x456c26{['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(_0x539378,_0x8910){super(),this['commentThreadId']=_0x539378,this['documentId']=_0x8910;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId']};}static['fromJSON'](_0x163bda){return new ReopenCommentThreadMessage(_0x163bda['commentThreadId'],_0x163bda['documentId']);}}
23
+ import _0x322ab2 from'../../../message.js';export default class ReopenCommentThreadMessage extends _0x322ab2{['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(_0x3a5d6f,_0x1cd991){super(),this['commentThreadId']=_0x3a5d6f,this['documentId']=_0x1cd991;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId']};}static['fromJSON'](_0x1418b8){return new ReopenCommentThreadMessage(_0x1418b8['commentThreadId'],_0x1418b8['documentId']);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x426ea3 from'../../../message.js';export default class ResolveCommentThreadMessage extends _0x426ea3{['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(_0x26e3ef,_0x16bea7,_0x1adce2,_0x4c8c6a){super(),this['commentThreadId']=_0x26e3ef,this['documentId']=_0x16bea7,this['resolvedBy']=_0x1adce2,this['resolvedAt']=_0x4c8c6a?new Date(_0x4c8c6a):void 0x0;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']?.['toISOString']()};}static['fromJSON'](_0x441fb5){return new ResolveCommentThreadMessage(_0x441fb5['commentThreadId'],_0x441fb5['documentId'],_0x441fb5['resolvedBy'],_0x441fb5['resolvedAt']);}}
23
+ import _0x280dcf from'../../../message.js';export default class ResolveCommentThreadMessage extends _0x280dcf{['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(_0x343a78,_0x4b0373,_0x1e971c,_0x3d735b){super(),this['commentThreadId']=_0x343a78,this['documentId']=_0x4b0373,this['resolvedBy']=_0x1e971c,this['resolvedAt']=_0x3d735b?new Date(_0x3d735b):void 0x0;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']?.['toISOString']()};}static['fromJSON'](_0x4a9727){return new ResolveCommentThreadMessage(_0x4a9727['commentThreadId'],_0x4a9727['documentId'],_0x4a9727['resolvedBy'],_0x4a9727['resolvedAt']);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x507c1c from'../../../message.js';export default class UpdateCommentThreadMessage extends _0x507c1c{['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(_0x17e86a,_0x186bb7,_0x3bf350,_0x409125=null,_0x114019=null){super(),this['commentThreadId']=_0x17e86a,this['documentId']=_0x186bb7,this['context']=_0x3bf350,this['attributes']=_0x409125,this['unlinkedAt']=_0x114019?new Date(_0x114019):'';}['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'](_0x2f353a){return new UpdateCommentThreadMessage(_0x2f353a['commentThreadId'],_0x2f353a['documentId'],_0x2f353a['context']?JSON['parse'](_0x2f353a['context']):_0x2f353a['context'],_0x2f353a['attributes']?JSON['parse'](_0x2f353a['attributes']):null,_0x2f353a['unlinkedAt']?new Date(_0x2f353a['unlinkedAt']):null);}}
23
+ import _0xb10307 from'../../../message.js';export default class UpdateCommentThreadMessage extends _0xb10307{['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(_0x20ada6,_0x36fe2f,_0x121f30,_0xe1b285=null,_0x515bce=null){super(),this['commentThreadId']=_0x20ada6,this['documentId']=_0x36fe2f,this['context']=_0x121f30,this['attributes']=_0xe1b285,this['unlinkedAt']=_0x515bce?new Date(_0x515bce):'';}['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'](_0xedbe26){return new UpdateCommentThreadMessage(_0xedbe26['commentThreadId'],_0xedbe26['documentId'],_0xedbe26['context']?JSON['parse'](_0xedbe26['context']):_0xedbe26['context'],_0xedbe26['attributes']?JSON['parse'](_0xedbe26['attributes']):null,_0xedbe26['unlinkedAt']?new Date(_0xedbe26['unlinkedAt']):null);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x4f3fd9 from'./../../message.js';export default class ConnectMessage extends _0x4f3fd9{['documentId'];static ['TYPE']='92';static ['READABLE_TYPE_NAME']='connectToComment';static ['DESCRIPTOR_NAME']='CommentsV2ConnectMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(_0x6d21d2){super(),this['documentId']=_0x6d21d2;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x305b63){return new ConnectMessage(_0x305b63['documentId']);}}
23
+ import _0x38d24e from'./../../message.js';export default class ConnectMessage extends _0x38d24e{['documentId'];static ['TYPE']='92';static ['READABLE_TYPE_NAME']='connectToComment';static ['DESCRIPTOR_NAME']='CommentsV2ConnectMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(_0x3cbf9a){super(),this['documentId']=_0x3cbf9a;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0xd6cf97){return new ConnectMessage(_0xd6cf97['documentId']);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x5db47c from'./../../message.js';export default class GetCommentThreadMessage extends _0x5db47c{['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(_0x26f489,_0x41ab6e){super(),this['commentThreadId']=_0x26f489,this['documentId']=_0x41ab6e;}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'documentId':this['documentId']};}static['fromJSON'](_0x324b57){return new GetCommentThreadMessage(_0x324b57['commentThreadId'],_0x324b57['documentId']);}}
23
+ import _0x5e7cc6 from'./../../message.js';export default class GetCommentThreadMessage extends _0x5e7cc6{['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(_0x36c660,_0x295c43){super(),this['commentThreadId']=_0x36c660,this['documentId']=_0x295c43;}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'documentId':this['documentId']};}static['fromJSON'](_0x300307){return new GetCommentThreadMessage(_0x300307['commentThreadId'],_0x300307['documentId']);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x37eb8e from'./../../message.js';export default class GetDocumentThreadsMessage extends _0x37eb8e{['documentId'];static ['TYPE']='94';static ['READABLE_TYPE_NAME']='getDocumentThreads';static ['DESCRIPTOR_NAME']='CommentsV2GetDocumentThreadsMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(_0x56d330){super(),this['documentId']=_0x56d330;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x44e8ee){return new GetDocumentThreadsMessage(_0x44e8ee['documentId']);}}
23
+ import _0x4f58d4 from'./../../message.js';export default class GetDocumentThreadsMessage extends _0x4f58d4{['documentId'];static ['TYPE']='94';static ['READABLE_TYPE_NAME']='getDocumentThreads';static ['DESCRIPTOR_NAME']='CommentsV2GetDocumentThreadsMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(_0x5f4f19){super(),this['documentId']=_0x5f4f19;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x2d1dd8){return new GetDocumentThreadsMessage(_0x2d1dd8['documentId']);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x1a8e70 from'./../../message.js';export default class RemoveCommentMessage extends _0x1a8e70{['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(_0x1009c9,_0x22951a,_0x330bc0){super(),this['documentId']=_0x1009c9,this['commentThreadId']=_0x22951a,this['commentId']=_0x330bc0;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'commentId':this['commentId']};}static['fromJSON'](_0x159a97){return new RemoveCommentMessage(_0x159a97['documentId'],_0x159a97['commentThreadId'],_0x159a97['commentId']);}}
23
+ import _0x40389d from'./../../message.js';export default class RemoveCommentMessage extends _0x40389d{['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(_0x27cf3a,_0x496fde,_0x277152){super(),this['documentId']=_0x27cf3a,this['commentThreadId']=_0x496fde,this['commentId']=_0x277152;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'commentId':this['commentId']};}static['fromJSON'](_0x123411){return new RemoveCommentMessage(_0x123411['documentId'],_0x123411['commentThreadId'],_0x123411['commentId']);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x45cf97 from'./../../message.js';export default class RemoveCommentThreadMessage extends _0x45cf97{['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(_0xb19472,_0x35745a){super(),this['documentId']=_0xb19472,this['commentThreadId']=_0x35745a;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId']};}static['fromJSON'](_0x7895da){return new RemoveCommentThreadMessage(_0x7895da['documentId'],_0x7895da['commentThreadId']);}}
23
+ import _0x2e443b from'./../../message.js';export default class RemoveCommentThreadMessage extends _0x2e443b{['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(_0x250d12,_0x580a05){super(),this['documentId']=_0x250d12,this['commentThreadId']=_0x580a05;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId']};}static['fromJSON'](_0xb997c3){return new RemoveCommentThreadMessage(_0xb997c3['documentId'],_0xb997c3['commentThreadId']);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x1e8199 from'./../../message.js';import _0xd9d9d1 from'../descriptors/commentsthreaddescriptor.js';export default class UpdateCommentMessage extends _0x1e8199{['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(_0x3a4765,_0x18615f,_0x787e31,_0x57640f,_0x4b6f5b=null,_0x1ba03a=!0x1,_0x793c6a){super(),this['documentId']=_0x3a4765,this['commentThreadId']=_0x18615f,this['commentId']=_0x787e31,this['content']=_0x57640f,this['attributes']=_0x4b6f5b,this['isAttributesUpdated']=_0x1ba03a,this['commentThread']=_0x793c6a;}['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']?_0xd9d9d1['toJSON'](this['commentThread']):void 0x0};}static['fromJSON'](_0x42a152){return new UpdateCommentMessage(_0x42a152['documentId'],_0x42a152['commentThreadId'],_0x42a152['commentId'],_0x42a152['content'],_0x42a152['attributes']?JSON['parse'](_0x42a152['attributes']):null,_0x42a152['isAttributesUpdated'],_0x42a152['commentThread']?_0xd9d9d1['fromJSON'](_0x42a152['commentThread']):void 0x0);}}
23
+ import _0x581a32 from'./../../message.js';import _0x3e47a1 from'../descriptors/commentsthreaddescriptor.js';export default class UpdateCommentMessage extends _0x581a32{['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(_0x3e2f65,_0xf234b4,_0x271f36,_0x2f36a9,_0x44891c=null,_0x2282d0=!0x1,_0x2eb33f){super(),this['documentId']=_0x3e2f65,this['commentThreadId']=_0xf234b4,this['commentId']=_0x271f36,this['content']=_0x2f36a9,this['attributes']=_0x44891c,this['isAttributesUpdated']=_0x2282d0,this['commentThread']=_0x2eb33f;}['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']?_0x3e47a1['toJSON'](this['commentThread']):void 0x0};}static['fromJSON'](_0x471bf7){return new UpdateCommentMessage(_0x471bf7['documentId'],_0x471bf7['commentThreadId'],_0x471bf7['commentId'],_0x471bf7['content'],_0x471bf7['attributes']?JSON['parse'](_0x471bf7['attributes']):null,_0x471bf7['isAttributesUpdated'],_0x471bf7['commentThread']?_0x3e47a1['fromJSON'](_0x471bf7['commentThread']):void 0x0);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x3a70ca from'./../../message.js';export default class AddCommentResponse extends _0x3a70ca{['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(_0x1b96f,_0x7e4bc8,_0x16591f){super(),this['commentThreadId']=_0x1b96f,this['commentId']=_0x7e4bc8,this['createdAt']=new Date(_0x16591f);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'commentId':this['commentId'],'createdAt':this['createdAt']['toISOString']()};}static['fromJSON'](_0x4848a6){return new AddCommentResponse(_0x4848a6['commentThreadId'],_0x4848a6['commentId'],_0x4848a6['createdAt']);}}
23
+ import _0x23a2c2 from'./../../message.js';export default class AddCommentResponse extends _0x23a2c2{['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(_0x1a1091,_0x25b538,_0x5b8f89){super(),this['commentThreadId']=_0x1a1091,this['commentId']=_0x25b538,this['createdAt']=new Date(_0x5b8f89);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'commentId':this['commentId'],'createdAt':this['createdAt']['toISOString']()};}static['fromJSON'](_0x207ca6){return new AddCommentResponse(_0x207ca6['commentThreadId'],_0x207ca6['commentId'],_0x207ca6['createdAt']);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x519705 from'./../../../message.js';import _0x1fb930 from'../../descriptors/commentthreadaddedcomment.js';export default class AddCommentThreadResponse extends _0x519705{['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(_0x11c1a2,_0x467920,_0x36b739=[]){super(),this['commentThreadId']=_0x11c1a2,this['comments']=_0x36b739,this['createdAt']=new Date(_0x467920);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'createdAt':this['createdAt']['toISOString'](),'comments':this['comments']['map'](_0x42a3cb=>_0x1fb930['toJSON'](_0x42a3cb))};}static['fromJSON'](_0x498960){return new AddCommentThreadResponse(_0x498960['commentThreadId'],_0x498960['createdAt'],_0x498960['comments']['map'](_0x13050f=>_0x1fb930['fromJSON'](_0x13050f)));}}
23
+ import _0x23651a from'./../../../message.js';import _0x101fbb from'../../descriptors/commentthreadaddedcomment.js';export default class AddCommentThreadResponse extends _0x23651a{['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(_0x38fbeb,_0x3ed7ab,_0x4f3dad=[]){super(),this['commentThreadId']=_0x38fbeb,this['comments']=_0x4f3dad,this['createdAt']=new Date(_0x3ed7ab);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'createdAt':this['createdAt']['toISOString'](),'comments':this['comments']['map'](_0x42b8db=>_0x101fbb['toJSON'](_0x42b8db))};}static['fromJSON'](_0x39db5e){return new AddCommentThreadResponse(_0x39db5e['commentThreadId'],_0x39db5e['createdAt'],_0x39db5e['comments']['map'](_0x1910b6=>_0x101fbb['fromJSON'](_0x1910b6)));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0xb6d321 from'./../../../message.js';export default class ResolveCommentThreadResponse extends _0xb6d321{['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(_0x28d5b5,_0x43a40e,_0x128c3c,_0x49917f){super(),this['commentThreadId']=_0x28d5b5,this['documentId']=_0x43a40e,this['resolvedBy']=_0x128c3c,this['resolvedAt']=new Date(_0x49917f);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'documentId':this['documentId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']['toISOString']()};}static['fromJSON'](_0x2ef54e){return new ResolveCommentThreadResponse(_0x2ef54e['commentThreadId'],_0x2ef54e['documentId'],_0x2ef54e['resolvedBy'],_0x2ef54e['resolvedAt']);}}
23
+ import _0x107237 from'./../../../message.js';export default class ResolveCommentThreadResponse extends _0x107237{['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(_0x3b73f6,_0x360333,_0x4bcfee,_0x2dfc51){super(),this['commentThreadId']=_0x3b73f6,this['documentId']=_0x360333,this['resolvedBy']=_0x4bcfee,this['resolvedAt']=new Date(_0x2dfc51);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'documentId':this['documentId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']['toISOString']()};}static['fromJSON'](_0x4a98e4){return new ResolveCommentThreadResponse(_0x4a98e4['commentThreadId'],_0x4a98e4['documentId'],_0x4a98e4['resolvedBy'],_0x4a98e4['resolvedAt']);}}