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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/dist/index.js +19 -19
  2. package/dist/index.js.map +1 -1
  3. package/package.json +3 -3
  4. package/src/ckeditorcloudserviceserror.js +1 -1
  5. package/src/ckeditorcloudservicesservererror.js +1 -1
  6. package/src/collaborativeeditingservice/collaborativeeditingservice.js +2 -2
  7. package/src/collaborativeeditingservice/descriptors/operationmetadatadescriptor.js +1 -1
  8. package/src/collaborativeeditingservice/helpers/operationmetadatahelpers.js +1 -1
  9. package/src/collaborativeeditingservice/messages/collaborativeeditingconnectmessage.js +1 -1
  10. package/src/collaborativeeditingservice/messages/collaborativeeditingreconnectmessage.js +1 -1
  11. package/src/collaborativeeditingservice/messages/collaborativeeditingupdatemessage.js +1 -1
  12. package/src/collaborativeeditingservice/messages/getdocumentdetailsmessage.js +1 -1
  13. package/src/collaborativeeditingservice/responses/collaborativeeditingconnectresponse.js +1 -1
  14. package/src/collaborativeeditingservice/responses/collaborativeeditingresponse.js +1 -1
  15. package/src/collaborativeeditingservice/responses/getdocumentdetailsresponse.js +1 -1
  16. package/src/comments-v2/commentsservice.js +2 -2
  17. package/src/comments-v2/descriptors/commentdescriptor.js +1 -1
  18. package/src/comments-v2/descriptors/commentsthreaddescriptor.js +1 -1
  19. package/src/comments-v2/descriptors/commentthreadaddedcomment.js +1 -1
  20. package/src/comments-v2/messages/addcommentmessage.js +1 -1
  21. package/src/comments-v2/messages/comment-threads/addcommentthreadmessage.js +1 -1
  22. package/src/comments-v2/messages/comment-threads/reopencommentthreadmessage.js +1 -1
  23. package/src/comments-v2/messages/comment-threads/resolvecommentthreadmessage.js +1 -1
  24. package/src/comments-v2/messages/comment-threads/updatecommentthreadmessage.js +1 -1
  25. package/src/comments-v2/messages/connectmessage.js +1 -1
  26. package/src/comments-v2/messages/getcommentthreadmessage.js +1 -1
  27. package/src/comments-v2/messages/getdocumentthreadsmessage.js +1 -1
  28. package/src/comments-v2/messages/removecommentmessage.js +1 -1
  29. package/src/comments-v2/messages/removecommentthreadmessage.js +1 -1
  30. package/src/comments-v2/messages/updatecommentmessage.js +1 -1
  31. package/src/comments-v2/responses/addcommentresponse.js +1 -1
  32. package/src/comments-v2/responses/comment-threads/addcommentthreadresponse.js +1 -1
  33. package/src/comments-v2/responses/comment-threads/resolvecommentthreadresponse.js +1 -1
  34. package/src/comments-v2/responses/connectresponse.js +1 -1
  35. package/src/comments-v2/responses/getcommentthreadresponse.js +1 -1
  36. package/src/comments-v2/responses/getdocumentthreadsresponse.js +1 -1
  37. package/src/compiledmessages.js +2 -2
  38. package/src/descriptor.js +1 -1
  39. package/src/descriptors/keyvaluedescriptor.js +1 -1
  40. package/src/editor/editorservice.js +2 -2
  41. package/src/editor/messages/iseditorbundleuploadedmessage.js +1 -1
  42. package/src/editor/responses/iseditorbundleuploadedresponse.js +1 -1
  43. package/src/errors/ServiceNotConnectedError.js +1 -1
  44. package/src/index.js +1 -1
  45. package/src/message.js +1 -1
  46. package/src/messagescompressor.js +1 -1
  47. package/src/messagesmapper.js +1 -1
  48. package/src/revision-history/descriptors/revisiondescriptor.js +1 -1
  49. package/src/revision-history/messages/revisionhistoryconnectmessage.js +1 -1
  50. package/src/revision-history/messages/revisionhistorygetrevisionmessage.js +1 -1
  51. package/src/revision-history/messages/revisionhistoryreconnectmessage.js +1 -1
  52. package/src/revision-history/messages/revisionhistoryupdaterevisionsmessage.js +1 -1
  53. package/src/revision-history/responses/revisionhistoryconnectresponse.js +1 -1
  54. package/src/revision-history/responses/revisionhistorygetrevisionresponse.js +1 -1
  55. package/src/revision-history/responses/revisionhistoryupdaterevisionsresponse.js +1 -1
  56. package/src/revision-history/revisionhistoryservice.js +2 -2
  57. package/src/sessions/descriptors/sessiondescriptor.js +1 -1
  58. package/src/sessions/messages/sessionsconnectmessage.js +1 -1
  59. package/src/sessions/messages/socketconnectmessage.js +1 -1
  60. package/src/sessions/messages/socketdisconnectmessage.js +1 -1
  61. package/src/sessions/responses/sessionsconnectresponse.js +1 -1
  62. package/src/sessions/sessioncollection.js +1 -1
  63. package/src/sessions/sessions.js +1 -1
  64. package/src/track-changes/descriptors/suggestiondescriptor.js +1 -1
  65. package/src/track-changes/messages/addsuggestionmessage.js +1 -1
  66. package/src/track-changes/messages/batchUpdateSuggestionsStateMessage.js +1 -1
  67. package/src/track-changes/messages/connectmessage.js +1 -1
  68. package/src/track-changes/messages/getallsuggestionsmessage.js +1 -1
  69. package/src/track-changes/messages/getsuggestionmessage.js +1 -1
  70. package/src/track-changes/messages/updatesuggestionmessage.js +1 -1
  71. package/src/track-changes/responses/addsuggestionresponse.js +1 -1
  72. package/src/track-changes/responses/connectresponse.js +1 -1
  73. package/src/track-changes/responses/getallsuggestionsresponse.js +1 -1
  74. package/src/track-changes/responses/getsuggestionresponse.js +1 -1
  75. package/src/track-changes/trackchangesservice.js +2 -2
  76. package/src/users/descriptors/userdescriptor.js +1 -1
  77. package/src/users/messages/getmanyusersmessage.js +1 -1
  78. package/src/users/messages/getusermessage.js +1 -1
  79. package/src/users/responses/getmanyusersresponse.js +1 -1
  80. package/src/users/responses/getuserresponse.js +1 -1
  81. package/src/users/user.js +1 -1
  82. package/src/version.d.ts +1 -1
  83. package/src/version.js +1 -1
  84. package/src/websocketgateway/channel.js +2 -2
  85. package/src/websocketgateway/messages/channelmessage.js +1 -1
  86. package/src/websocketgateway/parser/packetparser.js +1 -1
  87. package/src/websocketgateway/parser/packets/bytesbytespacketdatamessage.js +2 -2
  88. package/src/websocketgateway/parser/packets/numberbytespacketdatamessage.js +2 -2
  89. package/src/websocketgateway/parser/packets/numbernumberpacketdatamessag.js +2 -2
  90. package/src/websocketgateway/parser/packets/numberobjectpacketdatamessage.js +2 -2
  91. package/src/websocketgateway/parser/packets/numberstringpacketdatamessag.js +2 -2
  92. package/src/websocketgateway/parser/packets/objectbufferpacketdatamessage.js +2 -2
  93. package/src/websocketgateway/parser/packets/objectobjectpacketdatamessage.js +2 -2
  94. package/src/websocketgateway/parser/packets/packagedatamessage.js +1 -1
  95. package/src/websocketgateway/parser/packets/packetmessage.js +2 -2
  96. package/src/websocketgateway/parser/packets/packetoptionsmessage.js +1 -1
  97. package/src/websocketgateway/parser/packets/stringbytespacketdatamessage.js +2 -2
  98. package/src/websocketgateway/parser/packets/stringnumberpacketdatamessage.js +2 -2
  99. package/src/websocketgateway/parser/packets/stringobjectpacketdatamessage.js +2 -2
  100. package/src/websocketgateway/parser/packets/stringstringpacketdatamessage.js +2 -2
  101. package/src/websocketgateway/parser/parser.js +2 -2
  102. package/src/websocketgateway/parser/parserutils.js +1 -1
  103. package/src/websocketgateway/requestsmanager.js +1 -1
  104. package/src/websocketgateway/websocketgateway.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor-cloud-services-collaboration",
3
- "version": "53.0.1",
3
+ "version": "53.0.2",
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",
@@ -34,8 +34,8 @@
34
34
  "uuid": "^9.0.1"
35
35
  },
36
36
  "peerDependencies": {
37
- "ckeditor5": ">= 37.0",
38
- "@ckeditor/ckeditor5-utils": ">= 37.0"
37
+ "ckeditor5": ">= 37.0.0 || ^0.0.0-nightly || ^0.0.0-internal",
38
+ "@ckeditor/ckeditor5-utils": ">= 37.0 || ^0.0.0-nightly || ^0.0.0-internal"
39
39
  },
40
40
  "type": "module",
41
41
  "obfuscated": true
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export default class CKEditorCloudServicesError extends Error{['context'];['code'];['data'];constructor(_0xc4ce54,_0xcb08db,_0x47e062=null,_0x22b2e2={}){super('cloud-services-internal-error:\x20'+_0xc4ce54),this['context']=_0xcb08db,this['code']=_0x47e062,this['data']=_0x22b2e2,this['name']='CKEditorError';}static['fromPublicError'](_0x194ad8){return new CKEditorCloudServicesError(function(_0x4a6297){let _0x8d952='cloud-services-error:\x20'+_0x4a6297['message'];return _0x4a6297['data']&&(_0x8d952+='\x0aError\x20data:\x20'+JSON['stringify'](_0x4a6297['data'])),_0x4a6297['explanation']&&(_0x8d952+='\x0aExplanation:\x20'+_0x4a6297['explanation']),_0x4a6297['action']&&(_0x8d952+='\x0aAction:\x20'+_0x4a6297['action']),_0x4a6297['traceId']&&(_0x8d952+='\x0aTraceId:\x20'+_0x4a6297['traceId']),_0x4a6297['code']&&(_0x8d952+='\x0aCode:\x20'+_0x4a6297['code']),_0x8d952;}(_0x194ad8),_0x194ad8);}}
23
+ export default class CKEditorCloudServicesError extends Error{['context'];['code'];['data'];constructor(_0x229570,_0x3788dc,_0x2db805=null,_0x54402f={}){super('cloud-services-internal-error:\x20'+_0x229570),this['context']=_0x3788dc,this['code']=_0x2db805,this['data']=_0x54402f,this['name']='CKEditorError';}static['fromPublicError'](_0x252b16){return new CKEditorCloudServicesError(function(_0x24e79b){let _0x5e9a49='cloud-services-error:\x20'+_0x24e79b['message'];return _0x24e79b['data']&&(_0x5e9a49+='\x0aError\x20data:\x20'+JSON['stringify'](_0x24e79b['data'])),_0x24e79b['explanation']&&(_0x5e9a49+='\x0aExplanation:\x20'+_0x24e79b['explanation']),_0x24e79b['action']&&(_0x5e9a49+='\x0aAction:\x20'+_0x24e79b['action']),_0x24e79b['traceId']&&(_0x5e9a49+='\x0aTraceId:\x20'+_0x24e79b['traceId']),_0x24e79b['code']&&(_0x5e9a49+='\x0aCode:\x20'+_0x24e79b['code']),_0x5e9a49;}(_0x252b16),_0x252b16);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export default class CKEditorCloudServicesServerError extends Error{['code'];['traceId'];['data'];constructor(_0x4cb393,_0x1d5407){super(),this['name']='CKEditorCloudServicesServerError',this['stack']=void 0x0,this['message']=_0x4cb393,this['code']=_0x1d5407['code'],this['traceId']=_0x1d5407['traceId'],this['data']=_0x1d5407['data'];}static['fromPublicError'](_0x4db535){return new CKEditorCloudServicesServerError(function(_0x3f3077){let _0x521738='cloud-services-server-error:\x20'+_0x3f3077['message'];return _0x3f3077['explanation']&&(_0x521738+='\x0aExplanation:\x20'+_0x3f3077['explanation']),_0x3f3077['action']&&(_0x521738+='\x0aAction:\x20'+_0x3f3077['action']),_0x3f3077['traceId']&&(_0x521738+='\x0aTraceId:\x20'+_0x3f3077['traceId']),_0x3f3077['code']&&(_0x521738+='\x0aCode:\x20'+_0x3f3077['code']),_0x521738;}(_0x4db535),_0x4db535);}}
23
+ export default class CKEditorCloudServicesServerError extends Error{['code'];['traceId'];['data'];constructor(_0x5a6503,_0x2a9d5b){super(),this['name']='CKEditorCloudServicesServerError',this['stack']=void 0x0,this['message']=_0x5a6503,this['code']=_0x2a9d5b['code'],this['traceId']=_0x2a9d5b['traceId'],this['data']=_0x2a9d5b['data'];}static['fromPublicError'](_0x1ee7f3){return new CKEditorCloudServicesServerError(function(_0x597e6d){let _0x13f0a0='cloud-services-server-error:\x20'+_0x597e6d['message'];return _0x597e6d['explanation']&&(_0x13f0a0+='\x0aExplanation:\x20'+_0x597e6d['explanation']),_0x597e6d['action']&&(_0x13f0a0+='\x0aAction:\x20'+_0x597e6d['action']),_0x597e6d['traceId']&&(_0x13f0a0+='\x0aTraceId:\x20'+_0x597e6d['traceId']),_0x597e6d['code']&&(_0x13f0a0+='\x0aCode:\x20'+_0x597e6d['code']),_0x13f0a0;}(_0x1ee7f3),_0x1ee7f3);}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{v4 as _0xf28218}from'uuid';import{EmitterMixin}from'ckeditor5/src/utils.js';import _0x1d9184 from'./../messagescompressor.js';import _0x555b56 from'./../sessions/sessions.js';import _0x32f3f9 from'./messages/collaborativeeditingconnectmessage.js';import _0x408367 from'./messages/collaborativeeditingupdatemessage.js';import _0x280d59 from'./messages/collaborativeeditingreconnectmessage.js';import _0x3dbea1 from'./responses/collaborativeeditingresponse.js';import _0x14e6b6 from'./responses/collaborativeeditingconnectresponse.js';import _0x2445aa from'./../websocketgateway/websocketgateway.js';import _0x5b5e37 from'../ckeditorcloudserviceserror.js';import _0x37834b from'../errors/ServiceNotConnectedError.js';import _0x17aea7 from'./responses/getdocumentdetailsresponse.js';import _0x5ac1cf from'./messages/getdocumentdetailsmessage.js';export const _SERVICE=0x1;export default class extends/* #__PURE__ -- @preserve */
24
- EmitterMixin(){static ['_SERVICE']=0x1;['_bundleVersion'];['_id'];['_isConnected'];['_wsGateway'];['_channel'];['_connectedSessions'];constructor(_0x2c719b,_0x1989a9){if(super(),!_0x2c719b)throw new TypeError('Param\x20\x22bundleVersion\x22\x20must\x20be\x20provided.');this['_id']=_0x1989a9??_0xf28218(),this['_isConnected']=!0x1,this['_bundleVersion']=_0x2c719b;}['getId'](){return this['_id'];}['isConnected'](){return this['_isConnected'];}['connect'](_0x37cb06,_0x355f6b={'buffers':[],'types':[]},_0x453b92){const _0x1a6c59=new _0x32f3f9(this['getId'](),_0x355f6b['buffers'],_0x355f6b['types'],this['_bundleVersion'],_0x453b92);return this['_connect'](_0x37cb06,_0x1a6c59);}['reconnect'](_0xdead48,_0x2795b5){if(this['isConnected']())throw new _0x5b5e37('Cannot\x20reconnect\x20to\x20already\x20connected\x20service.',_0xdead48);return this['_connect'](_0xdead48,new _0x280d59(this['getId'](),_0x2795b5,this['_bundleVersion']));}['disconnect'](){this['_isConnected']&&(this['_isConnected']=!0x1,this['_wsGateway']&&(this['stopListening'](this['_wsGateway']),this['_wsGateway']=void 0x0),this['_channel']&&(this['stopListening'](this['_channel']),this['_channel']=void 0x0),this['_connectedSessions']&&(this['_connectedSessions']['disconnect'](),this['_connectedSessions']=void 0x0),this['fire']('disconnected'),this['stopListening']());}async['getDocumentDetails'](){const _0x33437c=new _0x5ac1cf(this['getId']());if(!this['_wsGateway'])throw new _0x37834b('Collaborative\x20Editing',this);const _0x3ed84e=await this['_wsGateway']['_sendRequest'](0x1,_0x5ac1cf['TYPE'],_0x1d9184['encode'](_0x33437c));return _0x1d9184['decode'](_0x3ed84e,_0x17aea7);}async['sendOperations'](_0x2ec795,_0x229454,_0x9c9ca6){if(!_0x2ec795?.['types']?.['length'])throw new _0x5b5e37('Cannot\x20send\x20empty\x20update.',this['_wsGateway']);const _0x3b21c7='number'==typeof _0x229454?_0x229454:parseInt(_0x229454);if(!Number['isInteger'](_0x3b21c7)||_0x3b21c7<0x0)throw new _0x5b5e37('Base\x20version\x20not\x20provided.',this['_wsGateway']);const _0x10e816=new _0x408367(this['getId'](),_0x2ec795['buffers'],_0x2ec795['types'],_0x3b21c7,[],_0x9c9ca6);if(!this['_wsGateway']||!this['_isConnected'])throw new _0x37834b('Collaborative\x20Editing',this);const _0x3cbd02=await this['_wsGateway']['_sendRequest'](0x1,_0x408367['TYPE'],_0x1d9184['encode'](_0x10e816));return _0x1d9184['decode'](_0x3cbd02,_0x3dbea1);}async['getConnectedSessions'](){if(!this['_isConnected'])throw new _0x37834b('Collaborative\x20Editing',this);return this['_connectedSessions']||(this['_connectedSessions']=await _0x555b56['getConnectedSessions'](this['_wsGateway'],this['_id'],0x1)),this['_connectedSessions'];}static['getConnectedSessions'](_0x5a86f4,_0x37c7a5){return _0x555b56['getConnectedSessions'](_0x5a86f4,_0x37c7a5,0x1);}async['_connect'](_0x62a81,_0x26104b){if(this['isConnected']())return;if(_0x62a81['state']!==_0x2445aa['STATE_CONNECTED'])throw new _0x5b5e37('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x62a81);this['_wsGateway']=_0x62a81,this['stopListening'](_0x62a81,'change:state');const _0x1454e9=await _0x62a81['_sendRequest'](0x1,_0x26104b['constructor']['TYPE'],_0x1d9184['encode'](_0x26104b)),_0x1e0cba=_0x1d9184['decode'](_0x1454e9,_0x14e6b6);return this['listenTo'](_0x62a81,'change:state',(_0x46ae6c,_0x144047,_0x1f2350)=>this['_onWsGatewayStateChange'](_0x1f2350),{'priority':_0x2445aa['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0x62a81,_0x1e0cba['channel']),this['_isConnected']=!0x0,this['fire']('connected'),_0x1e0cba;}['_connectToChannel'](_0x56f8e6,_0x1cdeb3){this['_channel']=_0x56f8e6['_getChannel'](0x1,_0x1cdeb3),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x408367['TYPE']),(_0x47c1e9,_0x520880)=>{const _0x6ed2d3=_0x1d9184['decode'](_0x520880,_0x408367);this['fire']('operationsReceived',_0x6ed2d3['baseVersion'],_0x6ed2d3['data'],_0x6ed2d3['metadata']);});}['_onWsGatewayStateChange'](_0x46d909){_0x46d909===_0x2445aa['STATE_DISCONNECTED']&&this['disconnect']();}}
23
+ import{v4 as _0x411a23}from'uuid';import{EmitterMixin}from'ckeditor5/src/utils.js';import _0x172677 from'./../messagescompressor.js';import _0x513b22 from'./../sessions/sessions.js';import _0x5e5372 from'./messages/collaborativeeditingconnectmessage.js';import _0x42b0a0 from'./messages/collaborativeeditingupdatemessage.js';import _0x397208 from'./messages/collaborativeeditingreconnectmessage.js';import _0x422801 from'./responses/collaborativeeditingresponse.js';import _0x50be3b from'./responses/collaborativeeditingconnectresponse.js';import _0x155aeb from'./../websocketgateway/websocketgateway.js';import _0x29de84 from'../ckeditorcloudserviceserror.js';import _0x47f2da from'../errors/ServiceNotConnectedError.js';import _0x4b1afc from'./responses/getdocumentdetailsresponse.js';import _0x2df67d 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(_0x3b6cb4,_0x382553){if(super(),!_0x3b6cb4)throw new TypeError('Param\x20\x22bundleVersion\x22\x20must\x20be\x20provided.');this['_id']=_0x382553??_0x411a23(),this['_isConnected']=!0x1,this['_bundleVersion']=_0x3b6cb4;}['getId'](){return this['_id'];}['isConnected'](){return this['_isConnected'];}['connect'](_0x45ad83,_0x41202a={'buffers':[],'types':[]},_0x1e912a){const _0x2eb2ba=new _0x5e5372(this['getId'](),_0x41202a['buffers'],_0x41202a['types'],this['_bundleVersion'],_0x1e912a);return this['_connect'](_0x45ad83,_0x2eb2ba);}['reconnect'](_0x110714,_0x27cf34){if(this['isConnected']())throw new _0x29de84('Cannot\x20reconnect\x20to\x20already\x20connected\x20service.',_0x110714);return this['_connect'](_0x110714,new _0x397208(this['getId'](),_0x27cf34,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 _0x6bf38f=new _0x2df67d(this['getId']());if(!this['_wsGateway'])throw new _0x47f2da('Collaborative\x20Editing',this);const _0x408c9a=await this['_wsGateway']['_sendRequest'](0x1,_0x2df67d['TYPE'],_0x172677['encode'](_0x6bf38f));return _0x172677['decode'](_0x408c9a,_0x4b1afc);}async['sendOperations'](_0x220791,_0x32e8a8,_0x32fdde){if(!_0x220791?.['types']?.['length'])throw new _0x29de84('Cannot\x20send\x20empty\x20update.',this['_wsGateway']);const _0x58e9c0='number'==typeof _0x32e8a8?_0x32e8a8:parseInt(_0x32e8a8);if(!Number['isInteger'](_0x58e9c0)||_0x58e9c0<0x0)throw new _0x29de84('Base\x20version\x20not\x20provided.',this['_wsGateway']);const _0x169b3a=new _0x42b0a0(this['getId'](),_0x220791['buffers'],_0x220791['types'],_0x58e9c0,[],_0x32fdde);if(!this['_wsGateway']||!this['_isConnected'])throw new _0x47f2da('Collaborative\x20Editing',this);const _0x55241f=await this['_wsGateway']['_sendRequest'](0x1,_0x42b0a0['TYPE'],_0x172677['encode'](_0x169b3a));return _0x172677['decode'](_0x55241f,_0x422801);}async['getConnectedSessions'](){if(!this['_isConnected'])throw new _0x47f2da('Collaborative\x20Editing',this);return this['_connectedSessions']||(this['_connectedSessions']=await _0x513b22['getConnectedSessions'](this['_wsGateway'],this['_id'],0x1)),this['_connectedSessions'];}static['getConnectedSessions'](_0x5cbc73,_0xfa0a0a){return _0x513b22['getConnectedSessions'](_0x5cbc73,_0xfa0a0a,0x1);}async['_connect'](_0x5c009c,_0x88a8b){if(this['isConnected']())return;if(_0x5c009c['state']!==_0x155aeb['STATE_CONNECTED'])throw new _0x29de84('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x5c009c);this['_wsGateway']=_0x5c009c,this['stopListening'](_0x5c009c,'change:state');const _0x3d01cc=await _0x5c009c['_sendRequest'](0x1,_0x88a8b['constructor']['TYPE'],_0x172677['encode'](_0x88a8b)),_0x5dcc5b=_0x172677['decode'](_0x3d01cc,_0x50be3b);return this['listenTo'](_0x5c009c,'change:state',(_0x43b182,_0x5db634,_0x500c56)=>this['_onWsGatewayStateChange'](_0x500c56),{'priority':_0x155aeb['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0x5c009c,_0x5dcc5b['channel']),this['_isConnected']=!0x0,this['fire']('connected'),_0x5dcc5b;}['_connectToChannel'](_0x2eea9d,_0x40e0df){this['_channel']=_0x2eea9d['_getChannel'](0x1,_0x40e0df),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x42b0a0['TYPE']),(_0x2a41bd,_0x15fefe)=>{const _0x2b2908=_0x172677['decode'](_0x15fefe,_0x42b0a0);this['fire']('operationsReceived',_0x2b2908['baseVersion'],_0x2b2908['data'],_0x2b2908['metadata']);});}['_onWsGatewayStateChange'](_0x10ce7b){_0x10ce7b===_0x155aeb['STATE_DISCONNECTED']&&this['disconnect']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x2268f4 from'./../../descriptor.js';export default class OperationMetadataDescriptor extends _0x2268f4{static ['DESCRIPTOR_NAME']='OperationMetadataDescriptor';static ['DESCRIPTOR']={'fields':{'userId':{'type':'string','id':0x1},'type':{'type':'string','id':0x2},'createdAt':{'type':'string','id':0x3}}};static['toJSON']({createdAt:_0x4b6291,..._0x523cbd}){const _0x5ae3dc={..._0x523cbd};return _0x4b6291?.['toISOString']&&(_0x5ae3dc['createdAt']=_0x4b6291['toISOString']()),_0x5ae3dc;}static['fromJSON']({createdAt:_0x19a278,..._0x5cb1cc}){const _0x220273={..._0x5cb1cc};return _0x19a278&&(_0x220273['createdAt']=new Date(_0x19a278)),_0x220273;}}
23
+ import _0x1c92db from'./../../descriptor.js';export default class OperationMetadataDescriptor extends _0x1c92db{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:_0x39c612,..._0x34a05c}){const _0x4dab46={..._0x34a05c};return _0x39c612?.['toISOString']&&(_0x4dab46['createdAt']=_0x39c612['toISOString']()),_0x4dab46;}static['fromJSON']({createdAt:_0x5370d0,..._0x6ad12b}){const _0x3011b5={..._0x6ad12b};return _0x5370d0&&(_0x3011b5['createdAt']=new Date(_0x5370d0)),_0x3011b5;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export default class OperationMetadataHelpers{static['prepareMetadataForOperations'](_0x194bc0,_0x5f496e){if(!_0x194bc0?.['length']||!_0x5f496e?.['length'])return[];const _0x4b0cd7=[];let _0x5cdd11=0x0;for(const _0x4a4a97 of _0x194bc0)if(0x0!==_0x4a4a97){if(!_0x5f496e[_0x5cdd11])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');_0x4b0cd7['push'](_0x5f496e[_0x5cdd11]),_0x5cdd11++;}else _0x4b0cd7['push'](_0x4b0cd7[_0x4b0cd7['length']-0x1]);return _0x4b0cd7;}static['removeUnnecessaryMetadata'](_0x30b8b2,_0x46db41){if(!_0x30b8b2?.['length']||!_0x46db41?.['length'])return[];const _0x36a781=[];for(let _0xb7ce55=0x0;_0xb7ce55<_0x30b8b2['length'];_0xb7ce55++)if(0x0!==_0x30b8b2[_0xb7ce55]){if(!_0x46db41[_0xb7ce55])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');_0x36a781['push'](_0x46db41[_0xb7ce55]);}return _0x36a781;}}
23
+ export default class OperationMetadataHelpers{static['prepareMetadataForOperations'](_0x397138,_0x5ac15c){if(!_0x397138?.['length']||!_0x5ac15c?.['length'])return[];const _0x52ba68=[];let _0x320a69=0x0;for(const _0x3c1ab8 of _0x397138)if(0x0!==_0x3c1ab8){if(!_0x5ac15c[_0x320a69])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');_0x52ba68['push'](_0x5ac15c[_0x320a69]),_0x320a69++;}else _0x52ba68['push'](_0x52ba68[_0x52ba68['length']-0x1]);return _0x52ba68;}static['removeUnnecessaryMetadata'](_0x47be33,_0x242083){if(!_0x47be33?.['length']||!_0x242083?.['length'])return[];const _0x1a3fd7=[];for(let _0x7423fd=0x0;_0x7423fd<_0x47be33['length'];_0x7423fd++)if(0x0!==_0x47be33[_0x7423fd]){if(!_0x242083[_0x7423fd])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');_0x1a3fd7['push'](_0x242083[_0x7423fd]);}return _0x1a3fd7;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x23b33d from'./../../message.js';export default class CollaborativeEditingConnectMessage extends _0x23b33d{['id'];['buffers'];['types'];['bundleVersion'];['lastOperationId'];static ['TYPE']='11';static ['READABLE_TYPE_NAME']='connectToDocument';static ['DESCRIPTOR_NAME']='CollaborativeEditingConnectMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'bundleVersion':{'type':'string','id':0x2},'buffers':{'rule':'repeated','type':'bytes','id':0x3},'types':{'rule':'repeated','type':'uint32','id':0x4},'lastOperationId':{'type':'string','id':0x5}}};constructor(_0x2e16bb,_0x5b6946,_0x127f2,_0x188135,_0x578d81=''){super(),this['id']=_0x2e16bb,this['buffers']=_0x5b6946,this['types']=_0x127f2,this['bundleVersion']=_0x188135,this['lastOperationId']=_0x578d81;}['toJSON'](){return{'id':this['id'],'buffers':this['buffers'],'types':this['types'],'bundleVersion':this['bundleVersion'],'lastOperationId':this['lastOperationId']};}static['fromJSON'](_0x4f3842){return new CollaborativeEditingConnectMessage(_0x4f3842['id'],_0x4f3842['buffers'],_0x4f3842['types'],_0x4f3842['bundleVersion'],_0x4f3842['lastOperationId']);}}
23
+ import _0x20a23b from'./../../message.js';export default class CollaborativeEditingConnectMessage extends _0x20a23b{['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(_0x25cbe7,_0x22e17c,_0x431b67,_0x193193,_0x26b580=''){super(),this['id']=_0x25cbe7,this['buffers']=_0x22e17c,this['types']=_0x431b67,this['bundleVersion']=_0x193193,this['lastOperationId']=_0x26b580;}['toJSON'](){return{'id':this['id'],'buffers':this['buffers'],'types':this['types'],'bundleVersion':this['bundleVersion'],'lastOperationId':this['lastOperationId']};}static['fromJSON'](_0x2adac7){return new CollaborativeEditingConnectMessage(_0x2adac7['id'],_0x2adac7['buffers'],_0x2adac7['types'],_0x2adac7['bundleVersion'],_0x2adac7['lastOperationId']);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x3e2bff from'./../../message.js';export default class CollaborativeEditingReconnectMessage extends _0x3e2bff{['id'];['lastKnowVersion'];['bundleVersion'];static ['TYPE']='12';static ['READABLE_TYPE_NAME']='reconnectToDocument';static ['DESCRIPTOR_NAME']='CollaborativeEditingReconnectMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'bundleVersion':{'type':'string','id':0x2},'lastKnowVersion':{'type':'uint32','id':0x3}}};constructor(_0x2ea802,_0x4960f7,_0x1aab58){super(),this['id']=_0x2ea802,this['lastKnowVersion']=_0x4960f7,this['bundleVersion']=_0x1aab58;}['toJSON'](){return{'id':this['id'],'bundleVersion':this['bundleVersion'],'lastKnowVersion':this['lastKnowVersion']};}static['fromJSON'](_0x419c30){return new CollaborativeEditingReconnectMessage(_0x419c30['id'],_0x419c30['lastKnowVersion'],_0x419c30['bundleVersion']);}}
23
+ import _0x449686 from'./../../message.js';export default class CollaborativeEditingReconnectMessage extends _0x449686{['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(_0x1e1d31,_0x38c8ab,_0x5a5905){super(),this['id']=_0x1e1d31,this['lastKnowVersion']=_0x38c8ab,this['bundleVersion']=_0x5a5905;}['toJSON'](){return{'id':this['id'],'bundleVersion':this['bundleVersion'],'lastKnowVersion':this['lastKnowVersion']};}static['fromJSON'](_0x2f637d){return new CollaborativeEditingReconnectMessage(_0x2f637d['id'],_0x2f637d['lastKnowVersion'],_0x2f637d['bundleVersion']);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x5d0891 from'./../../message.js';import _0x544a9d from'./../helpers/operationmetadatahelpers.js';import _0x5b3180 from'../descriptors/operationmetadatadescriptor.js';export default class CollaborativeEditingUpdateMessage extends _0x5d0891{['id'];['buffers'];['types'];['baseVersion'];['metadata'];['lastOperationId'];static ['TYPE']='13';static ['READABLE_TYPE_NAME']='updateDocument';static ['DESCRIPTOR_NAME']='CollaborativeEditingUpdateMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'baseVersion':{'type':'uint32','id':0x2},'buffers':{'rule':'repeated','type':'bytes','id':0x3},'types':{'rule':'repeated','type':'uint32','id':0x4},'metadata':{'rule':'repeated','type':'OperationMetadataDescriptor','id':0x6},'lastOperationId':{'type':'string','id':0x7}}};constructor(_0x34a547,_0x10034c,_0x26ea9b,_0x536e43,_0x419787=[],_0xc68bcf=''){super(),this['id']=_0x34a547,this['buffers']=_0x10034c,this['types']=_0x26ea9b,this['baseVersion']=_0x536e43,this['metadata']=_0x419787,this['lastOperationId']=_0xc68bcf;}get['data'](){return{'buffers':this['buffers'],'types':this['types'],'baseVersion':this['baseVersion'],'lastOperationId':this['lastOperationId']};}['toJSON'](){return{'id':this['id'],'buffers':this['buffers'],'types':this['types'],'baseVersion':this['baseVersion'],'metadata':_0x544a9d['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](_0x5b3180['toJSON']),'lastOperationId':this['lastOperationId']};}static['fromJSON'](_0x523ab0){return new CollaborativeEditingUpdateMessage(_0x523ab0['id'],_0x523ab0['buffers'],_0x523ab0['types'],_0x523ab0['baseVersion'],_0x544a9d['prepareMetadataForOperations'](_0x523ab0['types'],_0x523ab0['metadata'])['map'](_0x5b3180['fromJSON']),_0x523ab0['lastOperationId']);}}
23
+ import _0x37371f from'./../../message.js';import _0x37c0b8 from'./../helpers/operationmetadatahelpers.js';import _0x3c6513 from'../descriptors/operationmetadatadescriptor.js';export default class CollaborativeEditingUpdateMessage extends _0x37371f{['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(_0x2edf3b,_0x585cda,_0x57aa96,_0x55c3aa,_0x13c563=[],_0x503103=''){super(),this['id']=_0x2edf3b,this['buffers']=_0x585cda,this['types']=_0x57aa96,this['baseVersion']=_0x55c3aa,this['metadata']=_0x13c563,this['lastOperationId']=_0x503103;}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':_0x37c0b8['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](_0x3c6513['toJSON']),'lastOperationId':this['lastOperationId']};}static['fromJSON'](_0x4d1360){return new CollaborativeEditingUpdateMessage(_0x4d1360['id'],_0x4d1360['buffers'],_0x4d1360['types'],_0x4d1360['baseVersion'],_0x37c0b8['prepareMetadataForOperations'](_0x4d1360['types'],_0x4d1360['metadata'])['map'](_0x3c6513['fromJSON']),_0x4d1360['lastOperationId']);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x217acc from'../../message.js';export default class GetDocumentDetailsMessage extends _0x217acc{['documentId'];static ['TYPE']='14';static ['READABLE_TYPE_NAME']='getDocumentDetails';static ['DESCRIPTOR_NAME']='GetDocumentDetailsMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1},'environmentId':{'type':'string','id':0x2}}};constructor(_0x509060){super(),this['documentId']=_0x509060;}get['data'](){return{'documentId':this['documentId']};}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x2d1740){return new GetDocumentDetailsMessage(_0x2d1740['documentId']);}}
23
+ import _0x356b4a from'../../message.js';export default class GetDocumentDetailsMessage extends _0x356b4a{['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(_0x27f9d3){super(),this['documentId']=_0x27f9d3;}get['data'](){return{'documentId':this['documentId']};}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x18759e){return new GetDocumentDetailsMessage(_0x18759e['documentId']);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x41eecc from'./../../message.js';import _0x2c007c from'./../helpers/operationmetadatahelpers.js';import _0xf776dd from'../descriptors/operationmetadatadescriptor.js';export default class CollaborativeEditingConnectResponse extends _0x41eecc{['channel'];['version'];['buffers'];['types'];['offset'];['metadata'];['initData'];['sessionId'];['lastOperationId'];['sessionCreatedAt'];static ['DESCRIPTOR_NAME']='CollaborativeEditingConnectResponse';static ['DESCRIPTOR']=((()=>({'fields':{'channel':{'type':'string','id':0x1},'offset':{'type':'uint32','id':0x2},'version':{'type':'uint32','id':0x3},'buffers':{'rule':'repeated','type':'bytes','id':0x4},'types':{'rule':'repeated','type':'uint32','id':0x5},'metadata':{'rule':'repeated','type':_0xf776dd['DESCRIPTOR_NAME'],'id':0x7},'initData':{'type':'string','id':0x8},'isInitialized':{'type':'bool','id':0x9},'sessionId':{'type':'string','id':0xa},'lastOperationId':{'type':'string','id':0xb},'sessionCreatedAt':{'type':'string','id':0xc}}}))());constructor(_0x39ca84,_0x5c5593,_0x35c119=[],_0x2dff6d=[],_0x56473f=0x0,_0x325cda=[],_0x593754=null,_0x21a17e='',_0x5106bc='',_0x240c32=null){super(),this['channel']=_0x39ca84,this['version']=_0x5c5593,this['buffers']=_0x35c119,this['types']=_0x2dff6d,this['offset']=_0x56473f,this['metadata']=_0x325cda,this['initData']=_0x593754,this['sessionId']=_0x21a17e,this['lastOperationId']=_0x5106bc,this['sessionCreatedAt']=_0x240c32;}get['data'](){return{'buffers':this['buffers'],'types':this['types'],'baseVersion':this['version']-this['types']['length'],'lastOperationId':this['lastOperationId'],'sessionCreatedAt':this['sessionCreatedAt']};}get['wereChangesApplied'](){return!this['types']?.['length']&&null===this['initData'];}['toJSON'](){return{'channel':this['channel'],'version':this['version'],'sessionId':this['sessionId'],'buffers':this['buffers'],'types':this['types'],'offset':this['offset'],'metadata':_0x2c007c['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](_0xf776dd['toJSON']),'initData':this['initData']??'','isInitialized':'string'==typeof this['initData'],'lastOperationId':this['lastOperationId'],'sessionCreatedAt':this['sessionCreatedAt']?this['sessionCreatedAt']['toISOString']():null};}static['create'](_0x3dcce5){return new CollaborativeEditingConnectResponse(_0x3dcce5['channel'],_0x3dcce5['version'],_0x3dcce5['buffers'],_0x3dcce5['types'],_0x3dcce5['offset'],_0x3dcce5['metadata'],_0x3dcce5['initData'],_0x3dcce5['sessionId'],_0x3dcce5['lastOperationId'],_0x3dcce5['sessionCreatedAt']);}static['fromJSON'](_0x87538b){let _0x5349d2=null;return!0x0===_0x87538b['isInitialized']?_0x5349d2=_0x87538b['initData']??'':'boolean'!=typeof _0x87538b['isInitialized']&&_0x87538b['initData']&&(_0x5349d2=_0x87538b['initData']),CollaborativeEditingConnectResponse['create']({'channel':_0x87538b['channel'],'version':_0x87538b['version'],'buffers':_0x87538b['buffers'],'types':_0x87538b['types'],'offset':_0x87538b['offset'],'metadata':_0x2c007c['prepareMetadataForOperations'](_0x87538b['types'],_0x87538b['metadata'])['map'](_0xf776dd['fromJSON']),'initData':_0x5349d2,'sessionId':_0x87538b['sessionId'],'lastOperationId':_0x87538b['lastOperationId'],'sessionCreatedAt':_0x87538b['sessionCreatedAt']?new Date(_0x87538b['sessionCreatedAt']):null});}}
23
+ import _0x16c8e4 from'./../../message.js';import _0x17c80f from'./../helpers/operationmetadatahelpers.js';import _0x3a79eb from'../descriptors/operationmetadatadescriptor.js';export default class CollaborativeEditingConnectResponse extends _0x16c8e4{['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':_0x3a79eb['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(_0x1b315d,_0x26169d,_0x2127fb=[],_0x8cc1ce=[],_0x81d903=0x0,_0x3749f8=[],_0x552008=null,_0x9109c6='',_0x435154='',_0x2f129d=null){super(),this['channel']=_0x1b315d,this['version']=_0x26169d,this['buffers']=_0x2127fb,this['types']=_0x8cc1ce,this['offset']=_0x81d903,this['metadata']=_0x3749f8,this['initData']=_0x552008,this['sessionId']=_0x9109c6,this['lastOperationId']=_0x435154,this['sessionCreatedAt']=_0x2f129d;}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':_0x17c80f['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](_0x3a79eb['toJSON']),'initData':this['initData']??'','isInitialized':'string'==typeof this['initData'],'lastOperationId':this['lastOperationId'],'sessionCreatedAt':this['sessionCreatedAt']?this['sessionCreatedAt']['toISOString']():null};}static['create'](_0x5f3d94){return new CollaborativeEditingConnectResponse(_0x5f3d94['channel'],_0x5f3d94['version'],_0x5f3d94['buffers'],_0x5f3d94['types'],_0x5f3d94['offset'],_0x5f3d94['metadata'],_0x5f3d94['initData'],_0x5f3d94['sessionId'],_0x5f3d94['lastOperationId'],_0x5f3d94['sessionCreatedAt']);}static['fromJSON'](_0x1c3274){let _0x40c42d=null;return!0x0===_0x1c3274['isInitialized']?_0x40c42d=_0x1c3274['initData']??'':'boolean'!=typeof _0x1c3274['isInitialized']&&_0x1c3274['initData']&&(_0x40c42d=_0x1c3274['initData']),CollaborativeEditingConnectResponse['create']({'channel':_0x1c3274['channel'],'version':_0x1c3274['version'],'buffers':_0x1c3274['buffers'],'types':_0x1c3274['types'],'offset':_0x1c3274['offset'],'metadata':_0x17c80f['prepareMetadataForOperations'](_0x1c3274['types'],_0x1c3274['metadata'])['map'](_0x3a79eb['fromJSON']),'initData':_0x40c42d,'sessionId':_0x1c3274['sessionId'],'lastOperationId':_0x1c3274['lastOperationId'],'sessionCreatedAt':_0x1c3274['sessionCreatedAt']?new Date(_0x1c3274['sessionCreatedAt']):null});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x2fa15b from'./../../message.js';import _0x4c63b5 from'./../helpers/operationmetadatahelpers.js';import _0x5840b1 from'../descriptors/operationmetadatadescriptor.js';export default class CollaborativeEditingResponse extends _0x2fa15b{['version'];['buffers'];['types'];['metadata'];['lastOperationId'];['lastOperationAcceptedAt'];static ['DESCRIPTOR_NAME']='CollaborativeEditingResponse';static ['DESCRIPTOR']={'fields':{'version':{'type':'uint32','id':0x1},'buffers':{'rule':'repeated','type':'bytes','id':0x2},'types':{'rule':'repeated','type':'uint32','id':0x3},'metadata':{'rule':'repeated','type':'OperationMetadataDescriptor','id':0x5},'lastOperationId':{'type':'string','id':0x6},'lastOperationAcceptedAt':{'type':'string','id':0x7}}};constructor(_0x5e0e9d,_0x230ea5=[],_0x17aeb4=[],_0xaa31e=[],_0x130935='',_0x2dbd22=null){super(),this['version']=_0x5e0e9d,this['buffers']=_0x230ea5,this['types']=_0x17aeb4,this['metadata']=_0xaa31e,this['lastOperationId']=_0x130935,this['lastOperationAcceptedAt']=_0x2dbd22;}get['data'](){return{'buffers':this['buffers'],'types':this['types'],'baseVersion':this['version']-this['types']['length'],'lastOperationId':this['lastOperationId'],'lastOperationAcceptedAt':this['lastOperationAcceptedAt']};}get['wereChangesApplied'](){return!this['types']?.['length'];}['toJSON'](){return{'version':this['version'],'buffers':this['buffers'],'types':this['types'],'metadata':_0x4c63b5['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](_0x5840b1['toJSON']),'lastOperationId':this['lastOperationId'],'lastOperationAcceptedAt':this['lastOperationAcceptedAt']instanceof Date?this['lastOperationAcceptedAt']['toISOString']():this['lastOperationAcceptedAt']};}static['fromJSON'](_0x20afc8){return new CollaborativeEditingResponse(_0x20afc8['version'],_0x20afc8['buffers'],_0x20afc8['types'],_0x4c63b5['prepareMetadataForOperations'](_0x20afc8['types'],_0x20afc8['metadata'])['map'](_0x5840b1['fromJSON']),_0x20afc8['lastOperationId'],_0x20afc8['lastOperationAcceptedAt']?new Date(_0x20afc8['lastOperationAcceptedAt']):null);}static['create'](_0x3d4e92){return new CollaborativeEditingResponse(_0x3d4e92['version'],_0x3d4e92['buffers'],_0x3d4e92['types'],_0x3d4e92['metadata'],_0x3d4e92['lastOperationId'],_0x3d4e92['lastOperationAcceptedAt']?new Date(_0x3d4e92['lastOperationAcceptedAt']):null);}}
23
+ import _0x36484b from'./../../message.js';import _0x2ebf9c from'./../helpers/operationmetadatahelpers.js';import _0x3989e6 from'../descriptors/operationmetadatadescriptor.js';export default class CollaborativeEditingResponse extends _0x36484b{['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(_0x367949,_0x24296d=[],_0x4294b5=[],_0x2445bd=[],_0x2720c4='',_0x349206=null){super(),this['version']=_0x367949,this['buffers']=_0x24296d,this['types']=_0x4294b5,this['metadata']=_0x2445bd,this['lastOperationId']=_0x2720c4,this['lastOperationAcceptedAt']=_0x349206;}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':_0x2ebf9c['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](_0x3989e6['toJSON']),'lastOperationId':this['lastOperationId'],'lastOperationAcceptedAt':this['lastOperationAcceptedAt']instanceof Date?this['lastOperationAcceptedAt']['toISOString']():this['lastOperationAcceptedAt']};}static['fromJSON'](_0x4811ba){return new CollaborativeEditingResponse(_0x4811ba['version'],_0x4811ba['buffers'],_0x4811ba['types'],_0x2ebf9c['prepareMetadataForOperations'](_0x4811ba['types'],_0x4811ba['metadata'])['map'](_0x3989e6['fromJSON']),_0x4811ba['lastOperationId'],_0x4811ba['lastOperationAcceptedAt']?new Date(_0x4811ba['lastOperationAcceptedAt']):null);}static['create'](_0x24befc){return new CollaborativeEditingResponse(_0x24befc['version'],_0x24befc['buffers'],_0x24befc['types'],_0x24befc['metadata'],_0x24befc['lastOperationId'],_0x24befc['lastOperationAcceptedAt']?new Date(_0x24befc['lastOperationAcceptedAt']):null);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x3f71a4 from'./../../message.js';export default class GetDocumentDetailsResponse extends _0x3f71a4{['lastDocumentSession'];['currentDocumentSession'];static ['DESCRIPTOR_NAME']='GetDocumentDetailsResponse';static ['DESCRIPTOR']={'fields':{'lastDocumentSessionId':{'type':'string','id':0x1},'lastDocumentSessionOperationId':{'type':'string','id':0x2},'currentDocumentSessionId':{'type':'string','id':0x3},'currentDocumentSessionVersion':{'type':'uint32','id':0x4},'currentDocumentSessionOperationId':{'type':'string','id':0x5}}};constructor(_0x4c70b4,_0x196079){super(),this['lastDocumentSession']=_0x4c70b4,this['currentDocumentSession']=_0x196079;}get['data'](){return{'lastDocumentSessionId':this['lastDocumentSession']?.['id'],'lastDocumentSessionOperationId':this['lastDocumentSession']?.['lastOperationId'],'currentDocumentSessionId':this['currentDocumentSession']?.['id'],'currentDocumentSessionVersion':this['currentDocumentSession']?.['version'],'currentDocumentSessionOperationId':this['currentDocumentSession']?.['lastOperationId']};}['toJSON'](){return{'lastDocumentSessionId':this['lastDocumentSession']?.['id'],'lastDocumentSessionOperationId':this['lastDocumentSession']?.['lastOperationId'],'currentDocumentSessionId':this['currentDocumentSession']?.['id'],'currentDocumentSessionVersion':this['currentDocumentSession']?.['version'],'currentDocumentSessionOperationId':this['currentDocumentSession']?.['lastOperationId']};}static['fromJSON'](_0x30d6f6){const _0x26b7a8=_0x30d6f6['lastDocumentSessionId']?{'id':_0x30d6f6['lastDocumentSessionId'],'lastOperationId':_0x30d6f6['lastDocumentSessionOperationId']}:void 0x0,_0x340e6f=_0x30d6f6['currentDocumentSessionId']?{'lastOperationId':_0x30d6f6['currentDocumentSessionOperationId'],'version':_0x30d6f6['currentDocumentSessionVersion'],'id':_0x30d6f6['currentDocumentSessionId']}:void 0x0;return new GetDocumentDetailsResponse(_0x26b7a8,_0x340e6f);}}
23
+ import _0x96a51b from'./../../message.js';export default class GetDocumentDetailsResponse extends _0x96a51b{['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(_0x50c1cd,_0x359e96){super(),this['lastDocumentSession']=_0x50c1cd,this['currentDocumentSession']=_0x359e96;}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'](_0x1a92c4){const _0x2b6134=_0x1a92c4['lastDocumentSessionId']?{'id':_0x1a92c4['lastDocumentSessionId'],'lastOperationId':_0x1a92c4['lastDocumentSessionOperationId']}:void 0x0,_0x5e58e2=_0x1a92c4['currentDocumentSessionId']?{'lastOperationId':_0x1a92c4['currentDocumentSessionOperationId'],'version':_0x1a92c4['currentDocumentSessionVersion'],'id':_0x1a92c4['currentDocumentSessionId']}:void 0x0;return new GetDocumentDetailsResponse(_0x2b6134,_0x5e58e2);}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{EmitterMixin}from'ckeditor5/src/utils.js';import _0x53c9b4 from'./../messagescompressor.js';import _0x14b047 from'./messages/addcommentmessage.js';import _0x2ca29c from'./responses/addcommentresponse.js';import _0x3fc9b7 from'./messages/connectmessage.js';import _0x247abf from'./responses/connectresponse.js';import _0x672851 from'./messages/removecommentmessage.js';import _0x55b337 from'./messages/removecommentthreadmessage.js';import _0xba67d3 from'./messages/updatecommentmessage.js';import _0x56e34e from'./messages/getcommentthreadmessage.js';import _0xec0354 from'./responses/getcommentthreadresponse.js';import _0xdfd1df from'./messages/getdocumentthreadsmessage.js';import _0x5cd938 from'./responses/getdocumentthreadsresponse.js';import _0x2db8b7,{WEB_SOCKET_GATEWAY_STATES}from'./../websocketgateway/websocketgateway.js';import _0x49d952 from'./../ckeditorcloudserviceserror.js';import _0x31eebe from'../sessions/sessions.js';import _0x27696d from'../errors/ServiceNotConnectedError.js';import _0x473850 from'../ckeditorcloudservicesservererror.js';import _0x387ab3 from'./responses/comment-threads/addcommentthreadresponse.js';import _0xa18ccb from'./messages/comment-threads/addcommentthreadmessage.js';import _0x276060 from'./messages/comment-threads/resolvecommentthreadmessage.js';import _0x174ae9 from'./messages/comment-threads/reopencommentthreadmessage.js';import _0x548a7b from'./messages/comment-threads/updatecommentthreadmessage.js';import _0x57f19c from'./responses/comment-threads/resolvecommentthreadresponse.js';export const _SERVICE=0x9;class CommentsService extends/* #__PURE__ -- @preserve */
24
- EmitterMixin(){['_documentId'];['_isConnected']=!0x1;['_wsGateway'];['_channel'];['_connectedSessions'];static ['_SERVICE']=0x9;constructor(_0x52d444){super(),this['_documentId']=_0x52d444;}get['isConnected'](){return this['_isConnected'];}async['connect'](_0x67d0c){if(this['_isConnected'])return;if(_0x67d0c['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new _0x49d952('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x67d0c);const _0x1737fb=new _0x3fc9b7(this['_documentId']);this['_wsGateway']=_0x67d0c,this['stopListening'](_0x67d0c,'change:state');const _0x1d7d7b=await _0x67d0c['_sendRequest'](0x9,_0x3fc9b7['TYPE'],_0x53c9b4['encode'](_0x1737fb)),{channel:_0x3b426c,threads:_0x266c95}=_0x53c9b4['decode'](_0x1d7d7b,_0x247abf);return this['listenTo'](_0x67d0c,'change:state',(_0x53330b,_0xe486d8,_0x386b78)=>this['_onWsGatewayStateChange'](_0x386b78),{'priority':_0x2db8b7['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0x67d0c,_0x3b426c),this['_isConnected']=!0x0,this['fire']('connected'),_0x266c95;}['disconnect'](){this['_isConnected']&&(this['_isConnected']=!0x1,this['_wsGateway']&&(this['stopListening'](this['_wsGateway']),this['_wsGateway']=void 0x0),this['_channel']&&(this['stopListening'](this['_channel']),this['_channel']=void 0x0),this['_connectedSessions']&&(this['_connectedSessions']['disconnect'](),this['_connectedSessions']=void 0x0),this['fire']('disconnected'),this['stopListening']());}async['addComment'](_0x10e636,_0x36521a,_0x5e9c69,_0x347f32){const _0xb3caa=new _0x14b047(this['_documentId'],_0x10e636,_0x5e9c69,_0x36521a,void 0x0,void 0x0,_0x347f32),_0x47ac09=await this['_sendRequest'](_0x14b047['TYPE'],_0xb3caa);return _0x53c9b4['decode'](_0x47ac09,_0x2ca29c);}async['updateComment'](_0xd765b1,_0x417214,_0x5418d4,_0x4ef19c){const _0x4d1bce=void 0x0!==_0x4ef19c,_0x58b80b=new _0xba67d3(this['_documentId'],_0xd765b1,_0x417214,_0x5418d4,_0x4ef19c,_0x4d1bce);await this['_sendRequest'](_0xba67d3['TYPE'],_0x58b80b);}async['removeComment'](_0x43da23,_0x1de01f){const _0x2a71fd=new _0x672851(this['_documentId'],_0x43da23,_0x1de01f);await this['_sendRequest'](_0x672851['TYPE'],_0x2a71fd);}async['removeCommentThread'](_0x56ffc0){const _0x33eaf2=new _0x55b337(this['_documentId'],_0x56ffc0);await this['_sendRequest'](_0x55b337['TYPE'],_0x33eaf2);}async['addCommentThread'](_0x5ec7d2){const _0x22db1b=new _0xa18ccb(this['_documentId'],_0x5ec7d2['commentThreadId'],_0x5ec7d2['comments']?.['map'](_0x297929=>({..._0x297929,'documentId':this['_documentId'],'commentThreadId':_0x5ec7d2['commentThreadId']})),_0x5ec7d2['context'],_0x5ec7d2['resolvedBy'],_0x5ec7d2['createdAt'],_0x5ec7d2['resolvedAt'],_0x5ec7d2['deletedAt'],_0x5ec7d2['attributes']),_0x24795a=await this['_sendRequest'](_0xa18ccb['TYPE'],_0x22db1b);return _0x53c9b4['decode'](_0x24795a,_0x387ab3);}async['resolveCommentThread'](_0x332637){const _0x514dac=new _0x276060(_0x332637,this['_documentId']),_0x1de7c8=await this['_sendRequest'](_0x276060['TYPE'],_0x514dac);return _0x53c9b4['decode'](_0x1de7c8,_0x57f19c);}async['reopenCommentThread'](_0x160dec){const _0x2e9351=new _0x174ae9(_0x160dec,this['_documentId']);await this['_sendRequest'](_0x174ae9['TYPE'],_0x2e9351);}async['updateCommentThread'](_0x1ede78){const _0x144f9e=new _0x548a7b(_0x1ede78['commentThreadId'],this['_documentId'],_0x1ede78['context'],_0x1ede78['attributes'],_0x1ede78['unlinkedAt']);await this['_sendRequest'](_0x548a7b['TYPE'],_0x144f9e);}async['getCommentThread'](_0x3b9aad,_0x13029b=0x1){const _0x140a22=new _0x56e34e(_0x3b9aad,this['_documentId']);try{const _0x19ed21=await this['_sendRequest'](_0x56e34e['TYPE'],_0x140a22),_0x2a82ec=_0x53c9b4['decode'](_0x19ed21,_0xec0354);return{'commentThreadId':_0x2a82ec['commentThreadId'],'comments':_0x2a82ec['comments'],'attributes':_0x2a82ec['attributes'],'context':_0x2a82ec['context'],'resolvedAt':_0x2a82ec['resolvedAt'],'resolvedBy':_0x2a82ec['resolvedBy'],'deletedAt':_0x2a82ec['deletedAt'],'unlinkedAt':_0x2a82ec['unlinkedAt']};}catch(_0x40846a){if('CKEditorCloudServicesServerError'===_0x40846a['name']&&'404'===_0x40846a['code']&&_0x13029b<0x5)return await(_0x3c4c1=0x64*_0x13029b,new Promise(_0x4755c0=>{setTimeout(_0x4755c0,_0x3c4c1);})),this['getCommentThread'](_0x3b9aad,_0x13029b+0x1);if('CKEditorCloudServicesServerError'===_0x40846a['name'])throw _0x40846a;throw _0x473850['fromPublicError'](_0x40846a);}var _0x3c4c1;}async['getDocumentThreads'](){const _0x349636=new _0xdfd1df(this['_documentId']),_0x4405e4=await this['_sendRequest'](_0xdfd1df['TYPE'],_0x349636),{threads:_0x1b1f0d}=_0x53c9b4['decode'](_0x4405e4,_0x5cd938);return{'threads':_0x1b1f0d};}async['getConnectedSessions'](){if(!this['_isConnected'])throw new _0x27696d('Comments',this);return this['_connectedSessions']||(this['_connectedSessions']=await _0x31eebe['getConnectedSessions'](this['_wsGateway'],this['_documentId'],0x9)),this['_connectedSessions'];}['_connectToChannel'](_0x3a904a,_0x1141a9){this['_channel']=_0x3a904a['_getChannel'](CommentsService['_SERVICE'],_0x1141a9),this['_channel']&&(this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x14b047['TYPE']),(_0x1ea542,_0x15fc98)=>{const _0x1b5a5f=_0x53c9b4['decode'](_0x15fc98,_0x14b047);this['fire']('commentAdded',_0x1b5a5f);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x672851['TYPE']),(_0x5251ef,_0x41ed2c)=>{const _0x35d951=_0x53c9b4['decode'](_0x41ed2c,_0x672851);this['fire']('commentRemoved',_0x35d951);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0xba67d3['TYPE']),(_0x34dc7e,_0xb1b491)=>{const _0x1e881b=_0x53c9b4['decode'](_0xb1b491,_0xba67d3);this['fire']('commentUpdated',_0x1e881b);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x55b337['TYPE']),(_0x1a11f6,_0x4d3d51)=>{const _0x4d5aed=_0x53c9b4['decode'](_0x4d3d51,_0x55b337);this['fire']('commentThreadRemoved',_0x4d5aed);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0xa18ccb['TYPE']),(_0x5124d9,_0x1962f8)=>{const _0x2920d7=_0x53c9b4['decode'](_0x1962f8,_0xa18ccb);this['fire']('commentThreadAdded',_0x2920d7);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x548a7b['TYPE']),(_0x1a40cb,_0x43fa4e)=>{const _0x44aba3=_0x53c9b4['decode'](_0x43fa4e,_0x548a7b);this['fire']('commentThreadUpdated',_0x44aba3);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x276060['TYPE']),(_0x108137,_0x53199b)=>{const _0x5e4f75=_0x53c9b4['decode'](_0x53199b,_0x276060);this['fire']('commentThreadResolved',_0x5e4f75);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x174ae9['TYPE']),(_0x1d9ece,_0x3b7e72)=>{const _0x5b0e54=_0x53c9b4['decode'](_0x3b7e72,_0x174ae9);this['fire']('commentThreadReopened',_0x5b0e54);}));}['_onWsGatewayStateChange'](_0x486279){_0x486279===WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['disconnect']();}['_sendRequest'](_0x3df959,_0x3b72e8){if(!this['_wsGateway']||!this['_isConnected'])throw new _0x27696d('Comments',this);return this['_wsGateway']['_sendRequest'](0x9,_0x3df959,_0x53c9b4['encode'](_0x3b72e8));}}export default CommentsService;
23
+ import{EmitterMixin}from'ckeditor5/src/utils.js';import _0x404689 from'./../messagescompressor.js';import _0x30c1f4 from'./messages/addcommentmessage.js';import _0x2bf95f from'./responses/addcommentresponse.js';import _0x1ea426 from'./messages/connectmessage.js';import _0x5561e9 from'./responses/connectresponse.js';import _0x16f4da from'./messages/removecommentmessage.js';import _0x2b3df0 from'./messages/removecommentthreadmessage.js';import _0x1b6642 from'./messages/updatecommentmessage.js';import _0x31b009 from'./messages/getcommentthreadmessage.js';import _0xb41783 from'./responses/getcommentthreadresponse.js';import _0x269108 from'./messages/getdocumentthreadsmessage.js';import _0x3eebec from'./responses/getdocumentthreadsresponse.js';import _0x2ce84d,{WEB_SOCKET_GATEWAY_STATES}from'./../websocketgateway/websocketgateway.js';import _0x3d8898 from'./../ckeditorcloudserviceserror.js';import _0x5bc5f3 from'../sessions/sessions.js';import _0x355edc from'../errors/ServiceNotConnectedError.js';import _0x3e08bf from'../ckeditorcloudservicesservererror.js';import _0x2e614e from'./responses/comment-threads/addcommentthreadresponse.js';import _0x5a05a4 from'./messages/comment-threads/addcommentthreadmessage.js';import _0x1bafd9 from'./messages/comment-threads/resolvecommentthreadmessage.js';import _0x5150f0 from'./messages/comment-threads/reopencommentthreadmessage.js';import _0x5a5b71 from'./messages/comment-threads/updatecommentthreadmessage.js';import _0x1a36e1 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(_0x400b05){super(),this['_documentId']=_0x400b05;}get['isConnected'](){return this['_isConnected'];}async['connect'](_0x19fec3){if(this['_isConnected'])return;if(_0x19fec3['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new _0x3d8898('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x19fec3);const _0x5c78c6=new _0x1ea426(this['_documentId']);this['_wsGateway']=_0x19fec3,this['stopListening'](_0x19fec3,'change:state');const _0x5736c8=await _0x19fec3['_sendRequest'](0x9,_0x1ea426['TYPE'],_0x404689['encode'](_0x5c78c6)),{channel:_0x598c9c,threads:_0x9f92af}=_0x404689['decode'](_0x5736c8,_0x5561e9);return this['listenTo'](_0x19fec3,'change:state',(_0x1585b0,_0x1d0f4e,_0x39c8f0)=>this['_onWsGatewayStateChange'](_0x39c8f0),{'priority':_0x2ce84d['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0x19fec3,_0x598c9c),this['_isConnected']=!0x0,this['fire']('connected'),_0x9f92af;}['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'](_0x171d13,_0x315a40,_0x269687,_0x3681a3){const _0x5bf7d0=new _0x30c1f4(this['_documentId'],_0x171d13,_0x269687,_0x315a40,void 0x0,void 0x0,_0x3681a3),_0x2d756a=await this['_sendRequest'](_0x30c1f4['TYPE'],_0x5bf7d0);return _0x404689['decode'](_0x2d756a,_0x2bf95f);}async['updateComment'](_0x21d2c6,_0x2be62c,_0xd6cd24,_0x390799){const _0x38efee=void 0x0!==_0x390799,_0x166cf2=new _0x1b6642(this['_documentId'],_0x21d2c6,_0x2be62c,_0xd6cd24,_0x390799,_0x38efee);await this['_sendRequest'](_0x1b6642['TYPE'],_0x166cf2);}async['removeComment'](_0xb4a26e,_0x51b7bd){const _0x156e96=new _0x16f4da(this['_documentId'],_0xb4a26e,_0x51b7bd);await this['_sendRequest'](_0x16f4da['TYPE'],_0x156e96);}async['removeCommentThread'](_0x1f63a8){const _0x25da56=new _0x2b3df0(this['_documentId'],_0x1f63a8);await this['_sendRequest'](_0x2b3df0['TYPE'],_0x25da56);}async['addCommentThread'](_0x5714a6){const _0x40b3fb=new _0x5a05a4(this['_documentId'],_0x5714a6['commentThreadId'],_0x5714a6['comments']?.['map'](_0x499937=>({..._0x499937,'documentId':this['_documentId'],'commentThreadId':_0x5714a6['commentThreadId']})),_0x5714a6['context'],_0x5714a6['resolvedBy'],_0x5714a6['createdAt'],_0x5714a6['resolvedAt'],_0x5714a6['deletedAt'],_0x5714a6['attributes']),_0x2521fc=await this['_sendRequest'](_0x5a05a4['TYPE'],_0x40b3fb);return _0x404689['decode'](_0x2521fc,_0x2e614e);}async['resolveCommentThread'](_0x11aa8b){const _0x4e108a=new _0x1bafd9(_0x11aa8b,this['_documentId']),_0xe4c534=await this['_sendRequest'](_0x1bafd9['TYPE'],_0x4e108a);return _0x404689['decode'](_0xe4c534,_0x1a36e1);}async['reopenCommentThread'](_0x586559){const _0x4b2b23=new _0x5150f0(_0x586559,this['_documentId']);await this['_sendRequest'](_0x5150f0['TYPE'],_0x4b2b23);}async['updateCommentThread'](_0x1c567e){const _0x7adb7d=new _0x5a5b71(_0x1c567e['commentThreadId'],this['_documentId'],_0x1c567e['context'],_0x1c567e['attributes'],_0x1c567e['unlinkedAt']);await this['_sendRequest'](_0x5a5b71['TYPE'],_0x7adb7d);}async['getCommentThread'](_0x38805f,_0x5dd1ce=0x1){const _0x554d5d=new _0x31b009(_0x38805f,this['_documentId']);try{const _0x105053=await this['_sendRequest'](_0x31b009['TYPE'],_0x554d5d),_0x365a2e=_0x404689['decode'](_0x105053,_0xb41783);return{'commentThreadId':_0x365a2e['commentThreadId'],'comments':_0x365a2e['comments'],'attributes':_0x365a2e['attributes'],'context':_0x365a2e['context'],'resolvedAt':_0x365a2e['resolvedAt'],'resolvedBy':_0x365a2e['resolvedBy'],'deletedAt':_0x365a2e['deletedAt'],'unlinkedAt':_0x365a2e['unlinkedAt']};}catch(_0x16324d){if('CKEditorCloudServicesServerError'===_0x16324d['name']&&'404'===_0x16324d['code']&&_0x5dd1ce<0x5)return await(_0x653ff5=0x64*_0x5dd1ce,new Promise(_0x220f1d=>{setTimeout(_0x220f1d,_0x653ff5);})),this['getCommentThread'](_0x38805f,_0x5dd1ce+0x1);if('CKEditorCloudServicesServerError'===_0x16324d['name'])throw _0x16324d;throw _0x3e08bf['fromPublicError'](_0x16324d);}var _0x653ff5;}async['getDocumentThreads'](){const _0x4589dd=new _0x269108(this['_documentId']),_0x48e580=await this['_sendRequest'](_0x269108['TYPE'],_0x4589dd),{threads:_0x5be626}=_0x404689['decode'](_0x48e580,_0x3eebec);return{'threads':_0x5be626};}async['getConnectedSessions'](){if(!this['_isConnected'])throw new _0x355edc('Comments',this);return this['_connectedSessions']||(this['_connectedSessions']=await _0x5bc5f3['getConnectedSessions'](this['_wsGateway'],this['_documentId'],0x9)),this['_connectedSessions'];}['_connectToChannel'](_0x133cc4,_0x51ea50){this['_channel']=_0x133cc4['_getChannel'](CommentsService['_SERVICE'],_0x51ea50),this['_channel']&&(this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x30c1f4['TYPE']),(_0xc375f0,_0xe7aa0d)=>{const _0x4fd309=_0x404689['decode'](_0xe7aa0d,_0x30c1f4);this['fire']('commentAdded',_0x4fd309);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x16f4da['TYPE']),(_0x42b2c0,_0x4fa8d0)=>{const _0x1ef76c=_0x404689['decode'](_0x4fa8d0,_0x16f4da);this['fire']('commentRemoved',_0x1ef76c);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x1b6642['TYPE']),(_0x544032,_0x3ee706)=>{const _0xfc05d4=_0x404689['decode'](_0x3ee706,_0x1b6642);this['fire']('commentUpdated',_0xfc05d4);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x2b3df0['TYPE']),(_0x75fc1a,_0x4fdcbe)=>{const _0x503426=_0x404689['decode'](_0x4fdcbe,_0x2b3df0);this['fire']('commentThreadRemoved',_0x503426);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x5a05a4['TYPE']),(_0x2c60a1,_0x3598e7)=>{const _0x27f811=_0x404689['decode'](_0x3598e7,_0x5a05a4);this['fire']('commentThreadAdded',_0x27f811);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x5a5b71['TYPE']),(_0x561a81,_0x4cd53c)=>{const _0x5938df=_0x404689['decode'](_0x4cd53c,_0x5a5b71);this['fire']('commentThreadUpdated',_0x5938df);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x1bafd9['TYPE']),(_0x1b8d72,_0x53f9f3)=>{const _0x317042=_0x404689['decode'](_0x53f9f3,_0x1bafd9);this['fire']('commentThreadResolved',_0x317042);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x5150f0['TYPE']),(_0x5e10d4,_0x5bf1dc)=>{const _0x54ee46=_0x404689['decode'](_0x5bf1dc,_0x5150f0);this['fire']('commentThreadReopened',_0x54ee46);}));}['_onWsGatewayStateChange'](_0x3e1fff){_0x3e1fff===WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['disconnect']();}['_sendRequest'](_0x24371f,_0x4f0f99){if(!this['_wsGateway']||!this['_isConnected'])throw new _0x355edc('Comments',this);return this['_wsGateway']['_sendRequest'](0x9,_0x24371f,_0x404689['encode'](_0x4f0f99));}}export default CommentsService;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x292dd9 from'./../../descriptor.js';export default class CommentDescriptor extends _0x292dd9{static ['DESCRIPTOR_NAME']='CommentDescriptor';static ['DESCRIPTOR']={'fields':{'commentId':{'id':0x1,'type':'string'},'commentThreadId':{'id':0x2,'type':'string'},'userId':{'id':0x3,'type':'string'},'content':{'id':0x4,'type':'string'},'documentId':{'id':0x5,'type':'string'},'createdAt':{'id':0x6,'type':'string'},'attributes':{'id':0x7,'type':'string'}}};static['toJSON'](_0x29f27f){return{..._0x29f27f,'createdAt':_0x29f27f['createdAt']?.['toISOString'](),'attributes':_0x29f27f['attributes']?JSON['stringify'](_0x29f27f['attributes']):null};}static['fromJSON'](_0x9ce8df){return{..._0x9ce8df,'createdAt':new Date(_0x9ce8df['createdAt']),'attributes':_0x9ce8df['attributes']?JSON['parse'](_0x9ce8df['attributes']):null};}}
23
+ import _0x4d7b9b from'./../../descriptor.js';export default class CommentDescriptor extends _0x4d7b9b{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'](_0xe02d09){return{..._0xe02d09,'createdAt':_0xe02d09['createdAt']?.['toISOString'](),'attributes':_0xe02d09['attributes']?JSON['stringify'](_0xe02d09['attributes']):null};}static['fromJSON'](_0x2d12d6){return{..._0x2d12d6,'createdAt':new Date(_0x2d12d6['createdAt']),'attributes':_0x2d12d6['attributes']?JSON['parse'](_0x2d12d6['attributes']):null};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x3f6c45 from'./../../descriptor.js';import _0x22a86b from'./commentdescriptor.js';export default class CommentsThreadDescriptor extends _0x3f6c45{static ['DESCRIPTOR_NAME']='CommentsThreadDescriptor';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'comments':{'type':'CommentDescriptor','rule':'repeated','id':0x2},'resolvedAt':{'type':'string','id':0x3},'resolvedBy':{'type':'string','id':0x4},'context':{'type':'string','id':0x5},'createdAt':{'type':'string','id':0x6},'deletedAt':{'type':'string','id':0x7},'attributes':{'type':'string','id':0x8},'unlinkedAt':{'type':'string','id':0x9}}};static['toJSON'](_0x78de87){return{..._0x78de87,'createdAt':_0x78de87['createdAt']?.['toISOString'](),'deletedAt':_0x78de87['deletedAt']?.['toISOString'](),'resolvedAt':_0x78de87['resolvedAt']?.['toISOString'](),'attributes':_0x78de87['attributes']?JSON['stringify'](_0x78de87['attributes']):null,'context':_0x78de87['context']?JSON['stringify'](_0x78de87['context']):_0x78de87['context'],'comments':_0x78de87['comments']?.['map'](_0x22a86b['toJSON']),'unlinkedAt':_0x78de87['unlinkedAt']?.['toISOString']()};}static['fromJSON'](_0x532f63){return{..._0x532f63,'createdAt':_0x532f63['createdAt']?new Date(_0x532f63['createdAt']):void 0x0,'deletedAt':_0x532f63['deletedAt']?new Date(_0x532f63['deletedAt']):void 0x0,'resolvedAt':_0x532f63['resolvedAt']?new Date(_0x532f63['resolvedAt']):void 0x0,'attributes':_0x532f63['attributes']?JSON['parse'](_0x532f63['attributes']):null,'context':_0x532f63['context']?JSON['parse'](_0x532f63['context']):void 0x0,'comments':_0x532f63['comments']?.['map'](_0x22a86b['fromJSON']),'unlinkedAt':_0x532f63['unlinkedAt']?new Date(_0x532f63['unlinkedAt']):void 0x0};}}
23
+ import _0x2eae10 from'./../../descriptor.js';import _0x54ccc4 from'./commentdescriptor.js';export default class CommentsThreadDescriptor extends _0x2eae10{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'](_0x55a524){return{..._0x55a524,'createdAt':_0x55a524['createdAt']?.['toISOString'](),'deletedAt':_0x55a524['deletedAt']?.['toISOString'](),'resolvedAt':_0x55a524['resolvedAt']?.['toISOString'](),'attributes':_0x55a524['attributes']?JSON['stringify'](_0x55a524['attributes']):null,'context':_0x55a524['context']?JSON['stringify'](_0x55a524['context']):_0x55a524['context'],'comments':_0x55a524['comments']?.['map'](_0x54ccc4['toJSON']),'unlinkedAt':_0x55a524['unlinkedAt']?.['toISOString']()};}static['fromJSON'](_0x2d3fb1){return{..._0x2d3fb1,'createdAt':_0x2d3fb1['createdAt']?new Date(_0x2d3fb1['createdAt']):void 0x0,'deletedAt':_0x2d3fb1['deletedAt']?new Date(_0x2d3fb1['deletedAt']):void 0x0,'resolvedAt':_0x2d3fb1['resolvedAt']?new Date(_0x2d3fb1['resolvedAt']):void 0x0,'attributes':_0x2d3fb1['attributes']?JSON['parse'](_0x2d3fb1['attributes']):null,'context':_0x2d3fb1['context']?JSON['parse'](_0x2d3fb1['context']):void 0x0,'comments':_0x2d3fb1['comments']?.['map'](_0x54ccc4['fromJSON']),'unlinkedAt':_0x2d3fb1['unlinkedAt']?new Date(_0x2d3fb1['unlinkedAt']):void 0x0};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x15d5ef from'../../descriptor.js';export default class CommentThreadAddedCommentDescriptor extends _0x15d5ef{static ['DESCRIPTOR_NAME']='CommentThreadAddedCommentDescriptor';static ['DESCRIPTOR']={'fields':{'commentId':{'id':0x1,'type':'string'},'createdAt':{'id':0x2,'type':'string'}}};static['toJSON'](_0x282f34){return{'commentId':_0x282f34['commentId'],'createdAt':_0x282f34['createdAt']?.['toISOString']()};}static['fromJSON'](_0x837044){return{'commentId':_0x837044['commentId'],'createdAt':new Date(_0x837044['createdAt'])};}}
23
+ import _0x1f6450 from'../../descriptor.js';export default class CommentThreadAddedCommentDescriptor extends _0x1f6450{static ['DESCRIPTOR_NAME']='CommentThreadAddedCommentDescriptor';static ['DESCRIPTOR']={'fields':{'commentId':{'id':0x1,'type':'string'},'createdAt':{'id':0x2,'type':'string'}}};static['toJSON'](_0x3bdd0f){return{'commentId':_0x3bdd0f['commentId'],'createdAt':_0x3bdd0f['createdAt']?.['toISOString']()};}static['fromJSON'](_0xa3c4be){return{'commentId':_0xa3c4be['commentId'],'createdAt':new Date(_0xa3c4be['createdAt'])};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x594d68 from'./../../message.js';import _0x5ea36f from'../descriptors/commentsthreaddescriptor.js';export default class AddCommentMessage extends _0x594d68{['documentId'];['commentThreadId'];['content'];['commentId'];['userId'];['attributes'];['commentThread'];['createdAt'];static ['TYPE']='91';static ['READABLE_TYPE_NAME']='addComment';static ['DESCRIPTOR_NAME']='CommentsV2AddCommentMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'content':{'type':'string','id':0x2},'documentId':{'type':'string','id':0x3},'commentId':{'type':'string','id':0x4},'createdAt':{'type':'string','id':0x5},'userId':{'type':'string','id':0x6},'attributes':{'type':'string','id':0x7},'commentThread':{'type':'CommentsThreadDescriptor','id':0x8}}};constructor(_0x53f117,_0x2fccab,_0x572791,_0x560b31='',_0x1aaecd,_0x1fe232='',_0x3bf54f=null,_0x53e785){super(),this['documentId']=_0x53f117,this['commentThreadId']=_0x2fccab,this['content']=_0x572791,this['commentId']=_0x560b31,this['userId']=_0x1fe232,this['attributes']=_0x3bf54f,this['commentThread']=_0x53e785,this['createdAt']=_0x1aaecd?new Date(_0x1aaecd):'';}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'content':this['content'],'documentId':this['documentId'],'commentId':this['commentId'],'createdAt':this['createdAt']instanceof Date?this['createdAt']['toISOString']():this['createdAt'],'userId':this['userId'],'attributes':JSON['stringify'](this['attributes']),'commentThread':this['commentThread']?_0x5ea36f['toJSON'](this['commentThread']):void 0x0};}static['fromJSON'](_0x4f2fbe){return new AddCommentMessage(_0x4f2fbe['documentId'],_0x4f2fbe['commentThreadId'],_0x4f2fbe['content'],_0x4f2fbe['commentId']?_0x4f2fbe['commentId']:void 0x0,_0x4f2fbe['createdAt']?new Date(_0x4f2fbe['createdAt']):void 0x0,_0x4f2fbe['userId']?_0x4f2fbe['userId']:void 0x0,_0x4f2fbe['attributes']?JSON['parse'](_0x4f2fbe['attributes']):{},_0x4f2fbe['commentThread']?_0x5ea36f['fromJSON'](_0x4f2fbe['commentThread']):void 0x0);}}
23
+ import _0x161e55 from'./../../message.js';import _0x443d53 from'../descriptors/commentsthreaddescriptor.js';export default class AddCommentMessage extends _0x161e55{['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(_0x5422cd,_0x24399b,_0x21c153,_0x3a8d3d='',_0x44876f,_0x10ae5c='',_0x5de384=null,_0x1cd99d){super(),this['documentId']=_0x5422cd,this['commentThreadId']=_0x24399b,this['content']=_0x21c153,this['commentId']=_0x3a8d3d,this['userId']=_0x10ae5c,this['attributes']=_0x5de384,this['commentThread']=_0x1cd99d,this['createdAt']=_0x44876f?new Date(_0x44876f):'';}['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']?_0x443d53['toJSON'](this['commentThread']):void 0x0};}static['fromJSON'](_0x27fd36){return new AddCommentMessage(_0x27fd36['documentId'],_0x27fd36['commentThreadId'],_0x27fd36['content'],_0x27fd36['commentId']?_0x27fd36['commentId']:void 0x0,_0x27fd36['createdAt']?new Date(_0x27fd36['createdAt']):void 0x0,_0x27fd36['userId']?_0x27fd36['userId']:void 0x0,_0x27fd36['attributes']?JSON['parse'](_0x27fd36['attributes']):{},_0x27fd36['commentThread']?_0x443d53['fromJSON'](_0x27fd36['commentThread']):void 0x0);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x59182b from'../../../message.js';import _0x447717 from'../../descriptors/commentdescriptor.js';export default class AddCommentThreadMessage extends _0x59182b{['documentId'];['commentThreadId'];['comments'];['context'];['resolvedBy'];['attributes'];['createdAt'];['resolvedAt'];['deletedAt'];static ['TYPE']='140';static ['READABLE_TYPE_NAME']='addCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2AddCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1},'commentThreadId':{'type':'string','id':0x2},'context':{'type':'string','id':0x3},'createdAt':{'type':'string','id':0x4},'resolvedAt':{'type':'string','id':0x5},'resolvedBy':{'type':'string','id':0x6},'attributes':{'type':'string','id':0x7},'deletedAt':{'type':'string','id':0x8},'comments':{'type':'CommentDescriptor','rule':'repeated','id':0x9}}};constructor(_0x33f87d,_0x401b09,_0x25024d=[],_0x1c8d4a,_0x5c4f68=null,_0x55c67c=null,_0x151ab6=null,_0x40786b=null,_0x3170f3=null){super(),this['documentId']=_0x33f87d,this['commentThreadId']=_0x401b09,this['comments']=_0x25024d,this['context']=_0x1c8d4a,this['resolvedBy']=_0x5c4f68,this['attributes']=_0x3170f3,this['createdAt']=_0x55c67c?new Date(_0x55c67c):'',this['resolvedAt']=_0x151ab6?new Date(_0x151ab6):'',this['deletedAt']=_0x40786b?new Date(_0x40786b):'';}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'context':this['context']?JSON['stringify'](this['context']):this['context'],'documentId':this['documentId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']instanceof Date?this['resolvedAt']['toISOString']():this['resolvedAt'],'deletedAt':this['deletedAt']instanceof Date?this['deletedAt']['toISOString']():this['deletedAt'],'createdAt':this['createdAt']instanceof Date?this['createdAt']['toISOString']():this['createdAt'],'attributes':this['attributes']?JSON['stringify'](this['attributes']):this['attributes'],'comments':this['comments']?.['map'](_0x55c9de=>_0x447717['toJSON'](_0x55c9de))};}static['fromJSON'](_0x573ec7){return new AddCommentThreadMessage(_0x573ec7['documentId'],_0x573ec7['commentThreadId'],_0x573ec7['comments']?.['map'](_0x5d9e49=>_0x447717['fromJSON']({..._0x5d9e49,'documentId':_0x573ec7['documentId'],'commentThreadId':_0x573ec7['commentThreadId']})),_0x573ec7['context']?JSON['parse'](_0x573ec7['context']):_0x573ec7['context'],_0x573ec7['resolvedBy'],_0x573ec7['createdAt']?new Date(_0x573ec7['createdAt']):void 0x0,_0x573ec7['resolvedAt']?new Date(_0x573ec7['resolvedAt']):void 0x0,_0x573ec7['deletedAt']?new Date(_0x573ec7['deletedAt']):void 0x0,_0x573ec7['attributes']?JSON['parse'](_0x573ec7['attributes']):_0x573ec7['attributes']);}}
23
+ import _0x26f81e from'../../../message.js';import _0xbc2fb5 from'../../descriptors/commentdescriptor.js';export default class AddCommentThreadMessage extends _0x26f81e{['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(_0x3ec59d,_0x5de021,_0x4a4afb=[],_0x37f6bf,_0x2cc27b=null,_0x175691=null,_0x45d8a8=null,_0x38b093=null,_0x380aad=null){super(),this['documentId']=_0x3ec59d,this['commentThreadId']=_0x5de021,this['comments']=_0x4a4afb,this['context']=_0x37f6bf,this['resolvedBy']=_0x2cc27b,this['attributes']=_0x380aad,this['createdAt']=_0x175691?new Date(_0x175691):'',this['resolvedAt']=_0x45d8a8?new Date(_0x45d8a8):'',this['deletedAt']=_0x38b093?new Date(_0x38b093):'';}['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'](_0xdb45d7=>_0xbc2fb5['toJSON'](_0xdb45d7))};}static['fromJSON'](_0x59858d){return new AddCommentThreadMessage(_0x59858d['documentId'],_0x59858d['commentThreadId'],_0x59858d['comments']?.['map'](_0x3fbe0e=>_0xbc2fb5['fromJSON']({..._0x3fbe0e,'documentId':_0x59858d['documentId'],'commentThreadId':_0x59858d['commentThreadId']})),_0x59858d['context']?JSON['parse'](_0x59858d['context']):_0x59858d['context'],_0x59858d['resolvedBy'],_0x59858d['createdAt']?new Date(_0x59858d['createdAt']):void 0x0,_0x59858d['resolvedAt']?new Date(_0x59858d['resolvedAt']):void 0x0,_0x59858d['deletedAt']?new Date(_0x59858d['deletedAt']):void 0x0,_0x59858d['attributes']?JSON['parse'](_0x59858d['attributes']):_0x59858d['attributes']);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x221816 from'../../../message.js';export default class ReopenCommentThreadMessage extends _0x221816{['commentThreadId'];['documentId'];static ['TYPE']='141';static ['READABLE_TYPE_NAME']='reopenCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2ReopenCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2}}};constructor(_0x40c43e,_0x16b89b){super(),this['commentThreadId']=_0x40c43e,this['documentId']=_0x16b89b;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId']};}static['fromJSON'](_0x529402){return new ReopenCommentThreadMessage(_0x529402['commentThreadId'],_0x529402['documentId']);}}
23
+ import _0x65701 from'../../../message.js';export default class ReopenCommentThreadMessage extends _0x65701{['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(_0x4f0fb3,_0x3f3e91){super(),this['commentThreadId']=_0x4f0fb3,this['documentId']=_0x3f3e91;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId']};}static['fromJSON'](_0x1f2fdb){return new ReopenCommentThreadMessage(_0x1f2fdb['commentThreadId'],_0x1f2fdb['documentId']);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x2327bd from'../../../message.js';export default class ResolveCommentThreadMessage extends _0x2327bd{['commentThreadId'];['documentId'];['resolvedBy'];['resolvedAt'];static ['TYPE']='142';static ['READABLE_TYPE_NAME']='resolveCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2ResolveCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2},'resolvedBy':{'type':'string','id':0x3},'resolvedAt':{'type':'string','id':0x4}}};constructor(_0x3811fa,_0x242746,_0x49cf06,_0x869e32){super(),this['commentThreadId']=_0x3811fa,this['documentId']=_0x242746,this['resolvedBy']=_0x49cf06,this['resolvedAt']=_0x869e32?new Date(_0x869e32):void 0x0;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']?.['toISOString']()};}static['fromJSON'](_0x491b7d){return new ResolveCommentThreadMessage(_0x491b7d['commentThreadId'],_0x491b7d['documentId'],_0x491b7d['resolvedBy'],_0x491b7d['resolvedAt']);}}
23
+ import _0x26ab7a from'../../../message.js';export default class ResolveCommentThreadMessage extends _0x26ab7a{['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(_0x27091d,_0x15387d,_0x50f508,_0xa9c99e){super(),this['commentThreadId']=_0x27091d,this['documentId']=_0x15387d,this['resolvedBy']=_0x50f508,this['resolvedAt']=_0xa9c99e?new Date(_0xa9c99e):void 0x0;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']?.['toISOString']()};}static['fromJSON'](_0x150f98){return new ResolveCommentThreadMessage(_0x150f98['commentThreadId'],_0x150f98['documentId'],_0x150f98['resolvedBy'],_0x150f98['resolvedAt']);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x5e453e from'../../../message.js';export default class UpdateCommentThreadMessage extends _0x5e453e{['commentThreadId'];['documentId'];['context'];['attributes'];['unlinkedAt'];static ['TYPE']='143';static ['READABLE_TYPE_NAME']='updateCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2UpdateCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2},'context':{'type':'string','id':0x3},'attributes':{'type':'string','id':0x4},'unlinkedAt':{'type':'string','id':0x5}}};constructor(_0x4d4234,_0x18459a,_0x20342b,_0x131090=null,_0x381fc7=null){super(),this['commentThreadId']=_0x4d4234,this['documentId']=_0x18459a,this['context']=_0x20342b,this['attributes']=_0x131090,this['unlinkedAt']=_0x381fc7?new Date(_0x381fc7):'';}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'context':this['context']?JSON['stringify'](this['context']):this['context'],'attributes':this['attributes']?JSON['stringify'](this['attributes']):null,'unlinkedAt':this['unlinkedAt']instanceof Date?this['unlinkedAt']['toISOString']():this['unlinkedAt']};}static['fromJSON'](_0x29cf90){return new UpdateCommentThreadMessage(_0x29cf90['commentThreadId'],_0x29cf90['documentId'],_0x29cf90['context']?JSON['parse'](_0x29cf90['context']):_0x29cf90['context'],_0x29cf90['attributes']?JSON['parse'](_0x29cf90['attributes']):null,_0x29cf90['unlinkedAt']?new Date(_0x29cf90['unlinkedAt']):null);}}
23
+ import _0x4dc7db from'../../../message.js';export default class UpdateCommentThreadMessage extends _0x4dc7db{['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(_0x32a8e5,_0x450a59,_0xe7d8f1,_0x3565da=null,_0x56d0f9=null){super(),this['commentThreadId']=_0x32a8e5,this['documentId']=_0x450a59,this['context']=_0xe7d8f1,this['attributes']=_0x3565da,this['unlinkedAt']=_0x56d0f9?new Date(_0x56d0f9):'';}['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'](_0x1cb9da){return new UpdateCommentThreadMessage(_0x1cb9da['commentThreadId'],_0x1cb9da['documentId'],_0x1cb9da['context']?JSON['parse'](_0x1cb9da['context']):_0x1cb9da['context'],_0x1cb9da['attributes']?JSON['parse'](_0x1cb9da['attributes']):null,_0x1cb9da['unlinkedAt']?new Date(_0x1cb9da['unlinkedAt']):null);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x5843eb from'./../../message.js';export default class ConnectMessage extends _0x5843eb{['documentId'];static ['TYPE']='92';static ['READABLE_TYPE_NAME']='connectToComment';static ['DESCRIPTOR_NAME']='CommentsV2ConnectMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(_0x1d3d1b){super(),this['documentId']=_0x1d3d1b;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0xc24d0e){return new ConnectMessage(_0xc24d0e['documentId']);}}
23
+ import _0x18c5f3 from'./../../message.js';export default class ConnectMessage extends _0x18c5f3{['documentId'];static ['TYPE']='92';static ['READABLE_TYPE_NAME']='connectToComment';static ['DESCRIPTOR_NAME']='CommentsV2ConnectMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(_0x45b25a){super(),this['documentId']=_0x45b25a;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x27e381){return new ConnectMessage(_0x27e381['documentId']);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x5b85cb from'./../../message.js';export default class GetCommentThreadMessage extends _0x5b85cb{['commentThreadId'];['documentId'];static ['TYPE']='93';static ['READABLE_TYPE_NAME']='getComment';static ['DESCRIPTOR_NAME']='CommentsV2GetCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2}}};constructor(_0x201966,_0x2f4bc3){super(),this['commentThreadId']=_0x201966,this['documentId']=_0x2f4bc3;}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'documentId':this['documentId']};}static['fromJSON'](_0x1a36de){return new GetCommentThreadMessage(_0x1a36de['commentThreadId'],_0x1a36de['documentId']);}}
23
+ import _0x196b4a from'./../../message.js';export default class GetCommentThreadMessage extends _0x196b4a{['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(_0x3e800c,_0x4d52ae){super(),this['commentThreadId']=_0x3e800c,this['documentId']=_0x4d52ae;}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'documentId':this['documentId']};}static['fromJSON'](_0xe5914e){return new GetCommentThreadMessage(_0xe5914e['commentThreadId'],_0xe5914e['documentId']);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x5e2d45 from'./../../message.js';export default class GetDocumentThreadsMessage extends _0x5e2d45{['documentId'];static ['TYPE']='94';static ['READABLE_TYPE_NAME']='getDocumentThreads';static ['DESCRIPTOR_NAME']='CommentsV2GetDocumentThreadsMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(_0xa445e0){super(),this['documentId']=_0xa445e0;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x254aa6){return new GetDocumentThreadsMessage(_0x254aa6['documentId']);}}
23
+ import _0x36b2f1 from'./../../message.js';export default class GetDocumentThreadsMessage extends _0x36b2f1{['documentId'];static ['TYPE']='94';static ['READABLE_TYPE_NAME']='getDocumentThreads';static ['DESCRIPTOR_NAME']='CommentsV2GetDocumentThreadsMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(_0x1f715d){super(),this['documentId']=_0x1f715d;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x39c29c){return new GetDocumentThreadsMessage(_0x39c29c['documentId']);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x170232 from'./../../message.js';export default class RemoveCommentMessage extends _0x170232{['documentId'];['commentThreadId'];['commentId'];static ['TYPE']='95';static ['READABLE_TYPE_NAME']='removeComment';static ['DESCRIPTOR_NAME']='CommentsV2RemoveCommentMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'commentId':{'type':'string','id':0x2},'documentId':{'type':'string','id':0x3}}};constructor(_0x360575,_0xc63ad9,_0x14c3d8){super(),this['documentId']=_0x360575,this['commentThreadId']=_0xc63ad9,this['commentId']=_0x14c3d8;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'commentId':this['commentId']};}static['fromJSON'](_0x16a251){return new RemoveCommentMessage(_0x16a251['documentId'],_0x16a251['commentThreadId'],_0x16a251['commentId']);}}
23
+ import _0x142800 from'./../../message.js';export default class RemoveCommentMessage extends _0x142800{['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(_0x59cc9c,_0x5a37e2,_0x5cffc5){super(),this['documentId']=_0x59cc9c,this['commentThreadId']=_0x5a37e2,this['commentId']=_0x5cffc5;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'commentId':this['commentId']};}static['fromJSON'](_0x3a3e8a){return new RemoveCommentMessage(_0x3a3e8a['documentId'],_0x3a3e8a['commentThreadId'],_0x3a3e8a['commentId']);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x2ea06e from'./../../message.js';export default class RemoveCommentThreadMessage extends _0x2ea06e{['documentId'];['commentThreadId'];static ['TYPE']='97';static ['READABLE_TYPE_NAME']='removeCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2RemoveCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2}}};constructor(_0x3a9aee,_0x47485d){super(),this['documentId']=_0x3a9aee,this['commentThreadId']=_0x47485d;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId']};}static['fromJSON'](_0x3e0d54){return new RemoveCommentThreadMessage(_0x3e0d54['documentId'],_0x3e0d54['commentThreadId']);}}
23
+ import _0x49dbb0 from'./../../message.js';export default class RemoveCommentThreadMessage extends _0x49dbb0{['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(_0x28fed6,_0xb1884e){super(),this['documentId']=_0x28fed6,this['commentThreadId']=_0xb1884e;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId']};}static['fromJSON'](_0x5d2b02){return new RemoveCommentThreadMessage(_0x5d2b02['documentId'],_0x5d2b02['commentThreadId']);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0xe58d1f from'./../../message.js';import _0x2a9fe5 from'../descriptors/commentsthreaddescriptor.js';export default class UpdateCommentMessage extends _0xe58d1f{['documentId'];['commentThreadId'];['commentId'];['content'];['attributes'];['isAttributesUpdated'];['commentThread'];static ['TYPE']='96';static ['READABLE_TYPE_NAME']='updateComment';static ['DESCRIPTOR_NAME']='CommentsV2UpdateCommentMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'commentId':{'type':'string','id':0x2},'content':{'type':'string','id':0x3},'documentId':{'type':'string','id':0x4},'attributes':{'type':'string','id':0x5},'isAttributesUpdated':{'type':'bool','id':0x6},'commentThread':{'type':'CommentsThreadDescriptor','id':0x7}}};constructor(_0x34fda9,_0x51eaa0,_0x4db945,_0x37f94d,_0x5b5250=null,_0x152184=!0x1,_0x358cf0){super(),this['documentId']=_0x34fda9,this['commentThreadId']=_0x51eaa0,this['commentId']=_0x4db945,this['content']=_0x37f94d,this['attributes']=_0x5b5250,this['isAttributesUpdated']=_0x152184,this['commentThread']=_0x358cf0;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'commentId':this['commentId'],'content':this['content'],'attributes':this['attributes']?JSON['stringify'](this['attributes']):null,'isAttributesUpdated':this['isAttributesUpdated'],'commentThread':this['commentThread']?_0x2a9fe5['toJSON'](this['commentThread']):void 0x0};}static['fromJSON'](_0x242cd4){return new UpdateCommentMessage(_0x242cd4['documentId'],_0x242cd4['commentThreadId'],_0x242cd4['commentId'],_0x242cd4['content'],_0x242cd4['attributes']?JSON['parse'](_0x242cd4['attributes']):null,_0x242cd4['isAttributesUpdated'],_0x242cd4['commentThread']?_0x2a9fe5['fromJSON'](_0x242cd4['commentThread']):void 0x0);}}
23
+ import _0xb84d17 from'./../../message.js';import _0x1237e8 from'../descriptors/commentsthreaddescriptor.js';export default class UpdateCommentMessage extends _0xb84d17{['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(_0xa321ad,_0xbae04e,_0x47ab18,_0x2babf1,_0x1d9fa8=null,_0x3a13df=!0x1,_0x3d5058){super(),this['documentId']=_0xa321ad,this['commentThreadId']=_0xbae04e,this['commentId']=_0x47ab18,this['content']=_0x2babf1,this['attributes']=_0x1d9fa8,this['isAttributesUpdated']=_0x3a13df,this['commentThread']=_0x3d5058;}['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']?_0x1237e8['toJSON'](this['commentThread']):void 0x0};}static['fromJSON'](_0x388a81){return new UpdateCommentMessage(_0x388a81['documentId'],_0x388a81['commentThreadId'],_0x388a81['commentId'],_0x388a81['content'],_0x388a81['attributes']?JSON['parse'](_0x388a81['attributes']):null,_0x388a81['isAttributesUpdated'],_0x388a81['commentThread']?_0x1237e8['fromJSON'](_0x388a81['commentThread']):void 0x0);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x5e5b97 from'./../../message.js';export default class AddCommentResponse extends _0x5e5b97{['commentThreadId'];['commentId'];['createdAt'];static ['DESCRIPTOR_NAME']='CommentsV2AddCommentResponse';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'commentId':{'type':'string','id':0x2},'createdAt':{'type':'string','id':0x3}}};constructor(_0x5cd971,_0x99d9f4,_0xaf5458){super(),this['commentThreadId']=_0x5cd971,this['commentId']=_0x99d9f4,this['createdAt']=new Date(_0xaf5458);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'commentId':this['commentId'],'createdAt':this['createdAt']['toISOString']()};}static['fromJSON'](_0x10003f){return new AddCommentResponse(_0x10003f['commentThreadId'],_0x10003f['commentId'],_0x10003f['createdAt']);}}
23
+ import _0x4afd11 from'./../../message.js';export default class AddCommentResponse extends _0x4afd11{['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(_0x1cf85e,_0x44ac92,_0x578396){super(),this['commentThreadId']=_0x1cf85e,this['commentId']=_0x44ac92,this['createdAt']=new Date(_0x578396);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'commentId':this['commentId'],'createdAt':this['createdAt']['toISOString']()};}static['fromJSON'](_0xe0a315){return new AddCommentResponse(_0xe0a315['commentThreadId'],_0xe0a315['commentId'],_0xe0a315['createdAt']);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x4f9883 from'./../../../message.js';import _0x538fef from'../../descriptors/commentthreadaddedcomment.js';export default class AddCommentThreadResponse extends _0x4f9883{['commentThreadId'];['comments'];['createdAt'];static ['DESCRIPTOR_NAME']='CommentsV2AddCommentThreadResponse';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'createdAt':{'type':'string','id':0x2},'comments':{'type':'CommentThreadAddedCommentDescriptor','rule':'repeated','id':0x3}}};constructor(_0x13ea02,_0x1f12f0,_0x16237b=[]){super(),this['commentThreadId']=_0x13ea02,this['comments']=_0x16237b,this['createdAt']=new Date(_0x1f12f0);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'createdAt':this['createdAt']['toISOString'](),'comments':this['comments']['map'](_0x840a6b=>_0x538fef['toJSON'](_0x840a6b))};}static['fromJSON'](_0xd2807d){return new AddCommentThreadResponse(_0xd2807d['commentThreadId'],_0xd2807d['createdAt'],_0xd2807d['comments']['map'](_0x55a178=>_0x538fef['fromJSON'](_0x55a178)));}}
23
+ import _0x204ce3 from'./../../../message.js';import _0x1be931 from'../../descriptors/commentthreadaddedcomment.js';export default class AddCommentThreadResponse extends _0x204ce3{['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(_0x5ebe63,_0x3f5062,_0x5ce82a=[]){super(),this['commentThreadId']=_0x5ebe63,this['comments']=_0x5ce82a,this['createdAt']=new Date(_0x3f5062);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'createdAt':this['createdAt']['toISOString'](),'comments':this['comments']['map'](_0xb4c927=>_0x1be931['toJSON'](_0xb4c927))};}static['fromJSON'](_0x40f11e){return new AddCommentThreadResponse(_0x40f11e['commentThreadId'],_0x40f11e['createdAt'],_0x40f11e['comments']['map'](_0x38abe4=>_0x1be931['fromJSON'](_0x38abe4)));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0xf667eb from'./../../../message.js';export default class ResolveCommentThreadResponse extends _0xf667eb{['commentThreadId'];['documentId'];['resolvedBy'];['resolvedAt'];static ['DESCRIPTOR_NAME']='CommentsV2ResolveCommentThreadResponse';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2},'resolvedAt':{'type':'string','id':0x3},'resolvedBy':{'type':'string','id':0x4}}};constructor(_0x13f145,_0xb06e49,_0xc5ab5f,_0x1348b8){super(),this['commentThreadId']=_0x13f145,this['documentId']=_0xb06e49,this['resolvedBy']=_0xc5ab5f,this['resolvedAt']=new Date(_0x1348b8);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'documentId':this['documentId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']['toISOString']()};}static['fromJSON'](_0x186519){return new ResolveCommentThreadResponse(_0x186519['commentThreadId'],_0x186519['documentId'],_0x186519['resolvedBy'],_0x186519['resolvedAt']);}}
23
+ import _0x109e4d from'./../../../message.js';export default class ResolveCommentThreadResponse extends _0x109e4d{['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(_0x5b68a3,_0x40cc93,_0x84ea69,_0x4a4709){super(),this['commentThreadId']=_0x5b68a3,this['documentId']=_0x40cc93,this['resolvedBy']=_0x84ea69,this['resolvedAt']=new Date(_0x4a4709);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'documentId':this['documentId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']['toISOString']()};}static['fromJSON'](_0x575eed){return new ResolveCommentThreadResponse(_0x575eed['commentThreadId'],_0x575eed['documentId'],_0x575eed['resolvedBy'],_0x575eed['resolvedAt']);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x2e1b78 from'./../../message.js';import _0x331ed1 from'../descriptors/commentsthreaddescriptor.js';export default class ConnectResponse extends _0x2e1b78{['channel'];['_threads'];['_threadsV2'];['threads'];static ['DESCRIPTOR_NAME']='CommentsV2ConnectResponse';static ['DESCRIPTOR']={'fields':{'channel':{'type':'string','id':0x1},'threads':{'type':'string','rule':'repeated','id':0x2},'threadsV2':{'type':'CommentsThreadDescriptor','rule':'repeated','id':0x3}}};constructor(_0xff3706,_0x335bab,_0x4b815f){super(),this['channel']=_0xff3706,this['_threads']=_0x335bab,this['_threadsV2']=_0x4b815f,this['threads']=_0x4b815f?.['length']?_0x4b815f:_0x335bab;}['toJSON'](){return{'channel':this['channel'],'threads':this['_threads']?.['map'](_0x524140=>JSON['stringify'](_0x524140)),'threadsV2':this['_threadsV2']?.['map'](_0x331ed1['toJSON'])};}static['fromJSON'](_0x4c06b0){return new ConnectResponse(_0x4c06b0['channel'],_0x4c06b0['threads']?.['map'](_0x20b3bf=>JSON['parse'](_0x20b3bf)),_0x4c06b0['threadsV2']?.['map'](_0x331ed1['fromJSON']));}}
23
+ import _0x11012f from'./../../message.js';import _0x239361 from'../descriptors/commentsthreaddescriptor.js';export default class ConnectResponse extends _0x11012f{['channel'];['_threads'];['_threadsV2'];['threads'];static ['DESCRIPTOR_NAME']='CommentsV2ConnectResponse';static ['DESCRIPTOR']={'fields':{'channel':{'type':'string','id':0x1},'threads':{'type':'string','rule':'repeated','id':0x2},'threadsV2':{'type':'CommentsThreadDescriptor','rule':'repeated','id':0x3}}};constructor(_0x140155,_0x96ad62,_0x2653dd){super(),this['channel']=_0x140155,this['_threads']=_0x96ad62,this['_threadsV2']=_0x2653dd,this['threads']=_0x2653dd?.['length']?_0x2653dd:_0x96ad62;}['toJSON'](){return{'channel':this['channel'],'threads':this['_threads']?.['map'](_0x296854=>JSON['stringify'](_0x296854)),'threadsV2':this['_threadsV2']?.['map'](_0x239361['toJSON'])};}static['fromJSON'](_0x28cfc1){return new ConnectResponse(_0x28cfc1['channel'],_0x28cfc1['threads']?.['map'](_0x3b837c=>JSON['parse'](_0x3b837c)),_0x28cfc1['threadsV2']?.['map'](_0x239361['fromJSON']));}}