@ckeditor/ckeditor-cloud-services-collaboration 53.0.3 → 53.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/dist/index.js +19 -19
  2. package/package.json +4 -4
  3. package/src/ckeditorcloudserviceserror.js +1 -1
  4. package/src/ckeditorcloudservicesservererror.js +1 -1
  5. package/src/collaborativeeditingservice/collaborativeeditingservice.js +2 -2
  6. package/src/collaborativeeditingservice/descriptors/operationmetadatadescriptor.js +1 -1
  7. package/src/collaborativeeditingservice/helpers/operationmetadatahelpers.js +1 -1
  8. package/src/collaborativeeditingservice/messages/collaborativeeditingconnectmessage.js +1 -1
  9. package/src/collaborativeeditingservice/messages/collaborativeeditingreconnectmessage.js +1 -1
  10. package/src/collaborativeeditingservice/messages/collaborativeeditingupdatemessage.js +1 -1
  11. package/src/collaborativeeditingservice/messages/getdocumentdetailsmessage.js +1 -1
  12. package/src/collaborativeeditingservice/responses/collaborativeeditingconnectresponse.js +1 -1
  13. package/src/collaborativeeditingservice/responses/collaborativeeditingresponse.js +1 -1
  14. package/src/collaborativeeditingservice/responses/getdocumentdetailsresponse.js +1 -1
  15. package/src/comments-v2/commentsservice.js +2 -2
  16. package/src/comments-v2/descriptors/commentdescriptor.js +1 -1
  17. package/src/comments-v2/descriptors/commentsthreaddescriptor.js +1 -1
  18. package/src/comments-v2/descriptors/commentthreadaddedcomment.js +1 -1
  19. package/src/comments-v2/messages/addcommentmessage.js +1 -1
  20. package/src/comments-v2/messages/comment-threads/addcommentthreadmessage.js +1 -1
  21. package/src/comments-v2/messages/comment-threads/reopencommentthreadmessage.js +1 -1
  22. package/src/comments-v2/messages/comment-threads/resolvecommentthreadmessage.js +1 -1
  23. package/src/comments-v2/messages/comment-threads/updatecommentthreadmessage.js +1 -1
  24. package/src/comments-v2/messages/connectmessage.js +1 -1
  25. package/src/comments-v2/messages/getcommentthreadmessage.js +1 -1
  26. package/src/comments-v2/messages/getdocumentthreadsmessage.js +1 -1
  27. package/src/comments-v2/messages/removecommentmessage.js +1 -1
  28. package/src/comments-v2/messages/removecommentthreadmessage.js +1 -1
  29. package/src/comments-v2/messages/updatecommentmessage.js +1 -1
  30. package/src/comments-v2/responses/addcommentresponse.js +1 -1
  31. package/src/comments-v2/responses/comment-threads/addcommentthreadresponse.js +1 -1
  32. package/src/comments-v2/responses/comment-threads/resolvecommentthreadresponse.js +1 -1
  33. package/src/comments-v2/responses/connectresponse.js +1 -1
  34. package/src/comments-v2/responses/getcommentthreadresponse.js +1 -1
  35. package/src/comments-v2/responses/getdocumentthreadsresponse.js +1 -1
  36. package/src/compiledmessages.js +2 -2
  37. package/src/descriptor.js +1 -1
  38. package/src/descriptors/keyvaluedescriptor.js +1 -1
  39. package/src/editor/editorservice.js +2 -2
  40. package/src/editor/messages/iseditorbundleuploadedmessage.js +1 -1
  41. package/src/editor/responses/iseditorbundleuploadedresponse.js +1 -1
  42. package/src/errors/ServiceNotConnectedError.js +1 -1
  43. package/src/index.js +1 -1
  44. package/src/message.js +1 -1
  45. package/src/messagescompressor.js +1 -1
  46. package/src/messagesmapper.js +1 -1
  47. package/src/revision-history/descriptors/revisiondescriptor.js +1 -1
  48. package/src/revision-history/messages/revisionhistoryconnectmessage.js +1 -1
  49. package/src/revision-history/messages/revisionhistorygetrevisionmessage.js +1 -1
  50. package/src/revision-history/messages/revisionhistoryreconnectmessage.js +1 -1
  51. package/src/revision-history/messages/revisionhistoryupdaterevisionsmessage.js +1 -1
  52. package/src/revision-history/responses/revisionhistoryconnectresponse.js +1 -1
  53. package/src/revision-history/responses/revisionhistorygetrevisionresponse.js +1 -1
  54. package/src/revision-history/responses/revisionhistoryupdaterevisionsresponse.js +1 -1
  55. package/src/revision-history/revisionhistoryservice.js +2 -2
  56. package/src/sessions/descriptors/sessiondescriptor.js +1 -1
  57. package/src/sessions/messages/sessionsconnectmessage.js +1 -1
  58. package/src/sessions/messages/socketconnectmessage.js +1 -1
  59. package/src/sessions/messages/socketdisconnectmessage.js +1 -1
  60. package/src/sessions/responses/sessionsconnectresponse.js +1 -1
  61. package/src/sessions/sessioncollection.js +1 -1
  62. package/src/sessions/sessions.js +1 -1
  63. package/src/track-changes/descriptors/suggestiondescriptor.js +1 -1
  64. package/src/track-changes/messages/addsuggestionmessage.js +1 -1
  65. package/src/track-changes/messages/batchUpdateSuggestionsStateMessage.js +1 -1
  66. package/src/track-changes/messages/connectmessage.js +1 -1
  67. package/src/track-changes/messages/getallsuggestionsmessage.js +1 -1
  68. package/src/track-changes/messages/getsuggestionmessage.js +1 -1
  69. package/src/track-changes/messages/updatesuggestionmessage.js +1 -1
  70. package/src/track-changes/responses/addsuggestionresponse.js +1 -1
  71. package/src/track-changes/responses/connectresponse.js +1 -1
  72. package/src/track-changes/responses/getallsuggestionsresponse.js +1 -1
  73. package/src/track-changes/responses/getsuggestionresponse.js +1 -1
  74. package/src/track-changes/trackchangesservice.js +2 -2
  75. package/src/users/descriptors/userdescriptor.js +1 -1
  76. package/src/users/messages/getmanyusersmessage.js +1 -1
  77. package/src/users/messages/getusermessage.js +1 -1
  78. package/src/users/responses/getmanyusersresponse.js +1 -1
  79. package/src/users/responses/getuserresponse.js +1 -1
  80. package/src/users/user.js +1 -1
  81. package/src/version.d.ts +1 -1
  82. package/src/version.js +1 -1
  83. package/src/websocketgateway/channel.js +2 -2
  84. package/src/websocketgateway/messages/channelmessage.js +1 -1
  85. package/src/websocketgateway/parser/packetparser.js +1 -1
  86. package/src/websocketgateway/parser/packets/bytesbytespacketdatamessage.js +2 -2
  87. package/src/websocketgateway/parser/packets/numberbytespacketdatamessage.js +2 -2
  88. package/src/websocketgateway/parser/packets/numbernumberpacketdatamessag.js +2 -2
  89. package/src/websocketgateway/parser/packets/numberobjectpacketdatamessage.js +2 -2
  90. package/src/websocketgateway/parser/packets/numberstringpacketdatamessag.js +2 -2
  91. package/src/websocketgateway/parser/packets/objectbufferpacketdatamessage.js +2 -2
  92. package/src/websocketgateway/parser/packets/objectobjectpacketdatamessage.js +2 -2
  93. package/src/websocketgateway/parser/packets/packagedatamessage.js +1 -1
  94. package/src/websocketgateway/parser/packets/packetmessage.js +2 -2
  95. package/src/websocketgateway/parser/packets/packetoptionsmessage.js +1 -1
  96. package/src/websocketgateway/parser/packets/stringbytespacketdatamessage.js +2 -2
  97. package/src/websocketgateway/parser/packets/stringnumberpacketdatamessage.js +2 -2
  98. package/src/websocketgateway/parser/packets/stringobjectpacketdatamessage.js +2 -2
  99. package/src/websocketgateway/parser/packets/stringstringpacketdatamessage.js +2 -2
  100. package/src/websocketgateway/parser/parser.js +2 -2
  101. package/src/websocketgateway/parser/parserutils.js +1 -1
  102. package/src/websocketgateway/requestsmanager.js +1 -1
  103. package/src/websocketgateway/websocketgateway.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor-cloud-services-collaboration",
3
- "version": "53.0.3",
3
+ "version": "53.0.4",
4
4
  "description": "CKEditor Cloud Services Collaboration low-level API is required by CKEditor 5 Collaboration features to enable real-time collaborative editing in CKEditor 5.",
5
5
  "main": "src/index.js",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -27,15 +27,15 @@
27
27
  "author": "CKSource Holding sp. z o.o. (http://cksource.com/)",
28
28
  "homepage": "https://ckeditor.com/ckeditor-cloud-services/",
29
29
  "dependencies": {
30
- "protobufjs": "7.5.4",
30
+ "protobufjs": "7.5.5",
31
31
  "socket.io-client": "4.7.0",
32
32
  "socket.io-parser": "~4.2.3",
33
33
  "url-parse": "1.5.10",
34
34
  "uuid": "^9.0.1"
35
35
  },
36
36
  "peerDependencies": {
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"
37
+ "ckeditor5": ">= 37.0.0 < 48.0.0 || ^0.0.0-nightly || ^0.0.0-internal",
38
+ "@ckeditor/ckeditor5-utils": ">= 37.0.0 < 48.0.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(_0x2ca582,_0x591fd1,_0x41b03f=null,_0x2f9a07={}){super('cloud-services-internal-error:\x20'+_0x2ca582),this['context']=_0x591fd1,this['code']=_0x41b03f,this['data']=_0x2f9a07,this['name']='CKEditorError';}static['fromPublicError'](_0x151ea3){return new CKEditorCloudServicesError(function(_0x51f9c5){let _0x353753='cloud-services-error:\x20'+_0x51f9c5['message'];return _0x51f9c5['data']&&(_0x353753+='\x0aError\x20data:\x20'+JSON['stringify'](_0x51f9c5['data'])),_0x51f9c5['explanation']&&(_0x353753+='\x0aExplanation:\x20'+_0x51f9c5['explanation']),_0x51f9c5['action']&&(_0x353753+='\x0aAction:\x20'+_0x51f9c5['action']),_0x51f9c5['traceId']&&(_0x353753+='\x0aTraceId:\x20'+_0x51f9c5['traceId']),_0x51f9c5['code']&&(_0x353753+='\x0aCode:\x20'+_0x51f9c5['code']),_0x353753;}(_0x151ea3),_0x151ea3);}}
23
+ export default class CKEditorCloudServicesError extends Error{['context'];['code'];['data'];constructor(_0x150e29,_0x174f39,_0x34b47d=null,_0x2e7a72={}){super('cloud-services-internal-error:\x20'+_0x150e29),this['context']=_0x174f39,this['code']=_0x34b47d,this['data']=_0x2e7a72,this['name']='CKEditorError';}static['fromPublicError'](_0x5edc84){return new CKEditorCloudServicesError(function(_0x1345bf){let _0x27c4e5='cloud-services-error:\x20'+_0x1345bf['message'];return _0x1345bf['data']&&(_0x27c4e5+='\x0aError\x20data:\x20'+JSON['stringify'](_0x1345bf['data'])),_0x1345bf['explanation']&&(_0x27c4e5+='\x0aExplanation:\x20'+_0x1345bf['explanation']),_0x1345bf['action']&&(_0x27c4e5+='\x0aAction:\x20'+_0x1345bf['action']),_0x1345bf['traceId']&&(_0x27c4e5+='\x0aTraceId:\x20'+_0x1345bf['traceId']),_0x1345bf['code']&&(_0x27c4e5+='\x0aCode:\x20'+_0x1345bf['code']),_0x27c4e5;}(_0x5edc84),_0x5edc84);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export default class CKEditorCloudServicesServerError extends Error{['code'];['traceId'];['data'];constructor(_0xdc30c2,_0x390ea8){super(),this['name']='CKEditorCloudServicesServerError',this['stack']=void 0x0,this['message']=_0xdc30c2,this['code']=_0x390ea8['code'],this['traceId']=_0x390ea8['traceId'],this['data']=_0x390ea8['data'];}static['fromPublicError'](_0x4ff8b3){return new CKEditorCloudServicesServerError(function(_0x5c6856){let _0x3784d0='cloud-services-server-error:\x20'+_0x5c6856['message'];return _0x5c6856['explanation']&&(_0x3784d0+='\x0aExplanation:\x20'+_0x5c6856['explanation']),_0x5c6856['action']&&(_0x3784d0+='\x0aAction:\x20'+_0x5c6856['action']),_0x5c6856['traceId']&&(_0x3784d0+='\x0aTraceId:\x20'+_0x5c6856['traceId']),_0x5c6856['code']&&(_0x3784d0+='\x0aCode:\x20'+_0x5c6856['code']),_0x3784d0;}(_0x4ff8b3),_0x4ff8b3);}}
23
+ export default class CKEditorCloudServicesServerError extends Error{['code'];['traceId'];['data'];constructor(_0x443ab0,_0x58348a){super(),this['name']='CKEditorCloudServicesServerError',this['stack']=void 0x0,this['message']=_0x443ab0,this['code']=_0x58348a['code'],this['traceId']=_0x58348a['traceId'],this['data']=_0x58348a['data'];}static['fromPublicError'](_0x1bc913){return new CKEditorCloudServicesServerError(function(_0x333c00){let _0x18d8aa='cloud-services-server-error:\x20'+_0x333c00['message'];return _0x333c00['explanation']&&(_0x18d8aa+='\x0aExplanation:\x20'+_0x333c00['explanation']),_0x333c00['action']&&(_0x18d8aa+='\x0aAction:\x20'+_0x333c00['action']),_0x333c00['traceId']&&(_0x18d8aa+='\x0aTraceId:\x20'+_0x333c00['traceId']),_0x333c00['code']&&(_0x18d8aa+='\x0aCode:\x20'+_0x333c00['code']),_0x18d8aa;}(_0x1bc913),_0x1bc913);}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{v4 as _0x30aa92}from'uuid';import{EmitterMixin}from'ckeditor5/src/utils.js';import _0x22a122 from'./../messagescompressor.js';import _0x72b894 from'./../sessions/sessions.js';import _0x435615 from'./messages/collaborativeeditingconnectmessage.js';import _0x11150f from'./messages/collaborativeeditingupdatemessage.js';import _0x2abc53 from'./messages/collaborativeeditingreconnectmessage.js';import _0x1e620e from'./responses/collaborativeeditingresponse.js';import _0xce34ac from'./responses/collaborativeeditingconnectresponse.js';import _0x17e5dc from'./../websocketgateway/websocketgateway.js';import _0x4e6fcc from'../ckeditorcloudserviceserror.js';import _0x26c1e3 from'../errors/ServiceNotConnectedError.js';import _0x4b3cfd from'./responses/getdocumentdetailsresponse.js';import _0x52ba52 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(_0x233d21,_0xb41132){if(super(),!_0x233d21)throw new TypeError('Param\x20\x22bundleVersion\x22\x20must\x20be\x20provided.');this['_id']=_0xb41132??_0x30aa92(),this['_isConnected']=!0x1,this['_bundleVersion']=_0x233d21;}['getId'](){return this['_id'];}['isConnected'](){return this['_isConnected'];}['connect'](_0x5aa45c,_0x5182f6={'buffers':[],'types':[]},_0x59c604){const _0x18bd9f=new _0x435615(this['getId'](),_0x5182f6['buffers'],_0x5182f6['types'],this['_bundleVersion'],_0x59c604);return this['_connect'](_0x5aa45c,_0x18bd9f);}['reconnect'](_0x2b7211,_0x416294){if(this['isConnected']())throw new _0x4e6fcc('Cannot\x20reconnect\x20to\x20already\x20connected\x20service.',_0x2b7211);return this['_connect'](_0x2b7211,new _0x2abc53(this['getId'](),_0x416294,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 _0xf9feb9=new _0x52ba52(this['getId']());if(!this['_wsGateway'])throw new _0x26c1e3('Collaborative\x20Editing',this);const _0x135ebb=await this['_wsGateway']['_sendRequest'](0x1,_0x52ba52['TYPE'],_0x22a122['encode'](_0xf9feb9));return _0x22a122['decode'](_0x135ebb,_0x4b3cfd);}async['sendOperations'](_0x55ec31,_0x35ba07,_0x136a45){if(!_0x55ec31?.['types']?.['length'])throw new _0x4e6fcc('Cannot\x20send\x20empty\x20update.',this['_wsGateway']);const _0x55f88a='number'==typeof _0x35ba07?_0x35ba07:parseInt(_0x35ba07);if(!Number['isInteger'](_0x55f88a)||_0x55f88a<0x0)throw new _0x4e6fcc('Base\x20version\x20not\x20provided.',this['_wsGateway']);const _0x2f4d20=new _0x11150f(this['getId'](),_0x55ec31['buffers'],_0x55ec31['types'],_0x55f88a,[],_0x136a45);if(!this['_wsGateway']||!this['_isConnected'])throw new _0x26c1e3('Collaborative\x20Editing',this);const _0x22bd82=await this['_wsGateway']['_sendRequest'](0x1,_0x11150f['TYPE'],_0x22a122['encode'](_0x2f4d20));return _0x22a122['decode'](_0x22bd82,_0x1e620e);}async['getConnectedSessions'](){if(!this['_isConnected'])throw new _0x26c1e3('Collaborative\x20Editing',this);return this['_connectedSessions']||(this['_connectedSessions']=await _0x72b894['getConnectedSessions'](this['_wsGateway'],this['_id'],0x1)),this['_connectedSessions'];}static['getConnectedSessions'](_0x297a77,_0x4e20be){return _0x72b894['getConnectedSessions'](_0x297a77,_0x4e20be,0x1);}async['_connect'](_0x45e54c,_0x2cdafb){if(this['isConnected']())return;if(_0x45e54c['state']!==_0x17e5dc['STATE_CONNECTED'])throw new _0x4e6fcc('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x45e54c);this['_wsGateway']=_0x45e54c,this['stopListening'](_0x45e54c,'change:state');const _0x11eb23=await _0x45e54c['_sendRequest'](0x1,_0x2cdafb['constructor']['TYPE'],_0x22a122['encode'](_0x2cdafb)),_0xa8e177=_0x22a122['decode'](_0x11eb23,_0xce34ac);return this['listenTo'](_0x45e54c,'change:state',(_0xe1cb5,_0xf2ddfa,_0x31145b)=>this['_onWsGatewayStateChange'](_0x31145b),{'priority':_0x17e5dc['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0x45e54c,_0xa8e177['channel']),this['_isConnected']=!0x0,this['fire']('connected'),_0xa8e177;}['_connectToChannel'](_0x2bc5f4,_0x5d703e){this['_channel']=_0x2bc5f4['_getChannel'](0x1,_0x5d703e),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x11150f['TYPE']),(_0x2912e7,_0x1a99de)=>{const _0x1da00c=_0x22a122['decode'](_0x1a99de,_0x11150f);this['fire']('operationsReceived',_0x1da00c['baseVersion'],_0x1da00c['data'],_0x1da00c['metadata']);});}['_onWsGatewayStateChange'](_0x99c5d9){_0x99c5d9===_0x17e5dc['STATE_DISCONNECTED']&&this['disconnect']();}}
23
+ import{v4 as _0x445b5f}from'uuid';import{EmitterMixin}from'ckeditor5/src/utils.js';import _0x233ade from'./../messagescompressor.js';import _0xd3388a from'./../sessions/sessions.js';import _0xb849d2 from'./messages/collaborativeeditingconnectmessage.js';import _0xc292a8 from'./messages/collaborativeeditingupdatemessage.js';import _0x1c0ee8 from'./messages/collaborativeeditingreconnectmessage.js';import _0x396786 from'./responses/collaborativeeditingresponse.js';import _0x4e4deb from'./responses/collaborativeeditingconnectresponse.js';import _0x511abd from'./../websocketgateway/websocketgateway.js';import _0x636d11 from'../ckeditorcloudserviceserror.js';import _0xb313dd from'../errors/ServiceNotConnectedError.js';import _0x2e59bc from'./responses/getdocumentdetailsresponse.js';import _0x3a28f4 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(_0x2bff8b,_0x3a7bdb){if(super(),!_0x2bff8b)throw new TypeError('Param\x20\x22bundleVersion\x22\x20must\x20be\x20provided.');this['_id']=_0x3a7bdb??_0x445b5f(),this['_isConnected']=!0x1,this['_bundleVersion']=_0x2bff8b;}['getId'](){return this['_id'];}['isConnected'](){return this['_isConnected'];}['connect'](_0x4256e5,_0x5b9ac9={'buffers':[],'types':[]},_0x4294dc){const _0x51c717=new _0xb849d2(this['getId'](),_0x5b9ac9['buffers'],_0x5b9ac9['types'],this['_bundleVersion'],_0x4294dc);return this['_connect'](_0x4256e5,_0x51c717);}['reconnect'](_0x17f597,_0x5d0676){if(this['isConnected']())throw new _0x636d11('Cannot\x20reconnect\x20to\x20already\x20connected\x20service.',_0x17f597);return this['_connect'](_0x17f597,new _0x1c0ee8(this['getId'](),_0x5d0676,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 _0x177c0f=new _0x3a28f4(this['getId']());if(!this['_wsGateway'])throw new _0xb313dd('Collaborative\x20Editing',this);const _0x16fa49=await this['_wsGateway']['_sendRequest'](0x1,_0x3a28f4['TYPE'],_0x233ade['encode'](_0x177c0f));return _0x233ade['decode'](_0x16fa49,_0x2e59bc);}async['sendOperations'](_0x373309,_0x272084,_0x448587){if(!_0x373309?.['types']?.['length'])throw new _0x636d11('Cannot\x20send\x20empty\x20update.',this['_wsGateway']);const _0x50ed61='number'==typeof _0x272084?_0x272084:parseInt(_0x272084);if(!Number['isInteger'](_0x50ed61)||_0x50ed61<0x0)throw new _0x636d11('Base\x20version\x20not\x20provided.',this['_wsGateway']);const _0x379876=new _0xc292a8(this['getId'](),_0x373309['buffers'],_0x373309['types'],_0x50ed61,[],_0x448587);if(!this['_wsGateway']||!this['_isConnected'])throw new _0xb313dd('Collaborative\x20Editing',this);const _0x40b7a3=await this['_wsGateway']['_sendRequest'](0x1,_0xc292a8['TYPE'],_0x233ade['encode'](_0x379876));return _0x233ade['decode'](_0x40b7a3,_0x396786);}async['getConnectedSessions'](){if(!this['_isConnected'])throw new _0xb313dd('Collaborative\x20Editing',this);return this['_connectedSessions']||(this['_connectedSessions']=await _0xd3388a['getConnectedSessions'](this['_wsGateway'],this['_id'],0x1)),this['_connectedSessions'];}static['getConnectedSessions'](_0x42e5fc,_0x2b2a02){return _0xd3388a['getConnectedSessions'](_0x42e5fc,_0x2b2a02,0x1);}async['_connect'](_0xcd9596,_0x3eb34e){if(this['isConnected']())return;if(_0xcd9596['state']!==_0x511abd['STATE_CONNECTED'])throw new _0x636d11('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0xcd9596);this['_wsGateway']=_0xcd9596,this['stopListening'](_0xcd9596,'change:state');const _0x4191a4=await _0xcd9596['_sendRequest'](0x1,_0x3eb34e['constructor']['TYPE'],_0x233ade['encode'](_0x3eb34e)),_0x1be5b1=_0x233ade['decode'](_0x4191a4,_0x4e4deb);return this['listenTo'](_0xcd9596,'change:state',(_0x2a1525,_0x7b5538,_0x4aafc7)=>this['_onWsGatewayStateChange'](_0x4aafc7),{'priority':_0x511abd['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0xcd9596,_0x1be5b1['channel']),this['_isConnected']=!0x0,this['fire']('connected'),_0x1be5b1;}['_connectToChannel'](_0x194b97,_0x1cc080){this['_channel']=_0x194b97['_getChannel'](0x1,_0x1cc080),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0xc292a8['TYPE']),(_0x3d7056,_0x15f12f)=>{const _0x2c64a8=_0x233ade['decode'](_0x15f12f,_0xc292a8);this['fire']('operationsReceived',_0x2c64a8['baseVersion'],_0x2c64a8['data'],_0x2c64a8['metadata']);});}['_onWsGatewayStateChange'](_0x38aaa4){_0x38aaa4===_0x511abd['STATE_DISCONNECTED']&&this['disconnect']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0xa74e23 from'./../../descriptor.js';export default class OperationMetadataDescriptor extends _0xa74e23{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:_0x1365b0,..._0x1e98ef}){const _0x547b9b={..._0x1e98ef};return _0x1365b0?.['toISOString']&&(_0x547b9b['createdAt']=_0x1365b0['toISOString']()),_0x547b9b;}static['fromJSON']({createdAt:_0xfef267,..._0x3fc95b}){const _0x1af1c2={..._0x3fc95b};return _0xfef267&&(_0x1af1c2['createdAt']=new Date(_0xfef267)),_0x1af1c2;}}
23
+ import _0x366f2b from'./../../descriptor.js';export default class OperationMetadataDescriptor extends _0x366f2b{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:_0x501762,..._0x2ab95b}){const _0x56793a={..._0x2ab95b};return _0x501762?.['toISOString']&&(_0x56793a['createdAt']=_0x501762['toISOString']()),_0x56793a;}static['fromJSON']({createdAt:_0xaff2a8,..._0x165993}){const _0x39af65={..._0x165993};return _0xaff2a8&&(_0x39af65['createdAt']=new Date(_0xaff2a8)),_0x39af65;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export default class OperationMetadataHelpers{static['prepareMetadataForOperations'](_0x1f2be5,_0x23c6fd){if(!_0x1f2be5?.['length']||!_0x23c6fd?.['length'])return[];const _0x39bad9=[];let _0x5a820f=0x0;for(const _0x25f6d4 of _0x1f2be5)if(0x0!==_0x25f6d4){if(!_0x23c6fd[_0x5a820f])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');_0x39bad9['push'](_0x23c6fd[_0x5a820f]),_0x5a820f++;}else _0x39bad9['push'](_0x39bad9[_0x39bad9['length']-0x1]);return _0x39bad9;}static['removeUnnecessaryMetadata'](_0x24452e,_0x10bdb5){if(!_0x24452e?.['length']||!_0x10bdb5?.['length'])return[];const _0x2867fc=[];for(let _0x4af8d0=0x0;_0x4af8d0<_0x24452e['length'];_0x4af8d0++)if(0x0!==_0x24452e[_0x4af8d0]){if(!_0x10bdb5[_0x4af8d0])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');_0x2867fc['push'](_0x10bdb5[_0x4af8d0]);}return _0x2867fc;}}
23
+ export default class OperationMetadataHelpers{static['prepareMetadataForOperations'](_0x18696c,_0x3c41dd){if(!_0x18696c?.['length']||!_0x3c41dd?.['length'])return[];const _0x328203=[];let _0x2d8669=0x0;for(const _0x311e5f of _0x18696c)if(0x0!==_0x311e5f){if(!_0x3c41dd[_0x2d8669])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');_0x328203['push'](_0x3c41dd[_0x2d8669]),_0x2d8669++;}else _0x328203['push'](_0x328203[_0x328203['length']-0x1]);return _0x328203;}static['removeUnnecessaryMetadata'](_0x51a5e,_0x459c72){if(!_0x51a5e?.['length']||!_0x459c72?.['length'])return[];const _0x3fb751=[];for(let _0x20d2af=0x0;_0x20d2af<_0x51a5e['length'];_0x20d2af++)if(0x0!==_0x51a5e[_0x20d2af]){if(!_0x459c72[_0x20d2af])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');_0x3fb751['push'](_0x459c72[_0x20d2af]);}return _0x3fb751;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x3ce9b1 from'./../../message.js';export default class CollaborativeEditingConnectMessage extends _0x3ce9b1{['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(_0x2e4738,_0xa6220,_0x5056a1,_0x2e7a8c,_0x423196=''){super(),this['id']=_0x2e4738,this['buffers']=_0xa6220,this['types']=_0x5056a1,this['bundleVersion']=_0x2e7a8c,this['lastOperationId']=_0x423196;}['toJSON'](){return{'id':this['id'],'buffers':this['buffers'],'types':this['types'],'bundleVersion':this['bundleVersion'],'lastOperationId':this['lastOperationId']};}static['fromJSON'](_0xc84da){return new CollaborativeEditingConnectMessage(_0xc84da['id'],_0xc84da['buffers'],_0xc84da['types'],_0xc84da['bundleVersion'],_0xc84da['lastOperationId']);}}
23
+ import _0x69b062 from'./../../message.js';export default class CollaborativeEditingConnectMessage extends _0x69b062{['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(_0x5f58f9,_0x333e09,_0x4794a3,_0x5460a4,_0xffe64c=''){super(),this['id']=_0x5f58f9,this['buffers']=_0x333e09,this['types']=_0x4794a3,this['bundleVersion']=_0x5460a4,this['lastOperationId']=_0xffe64c;}['toJSON'](){return{'id':this['id'],'buffers':this['buffers'],'types':this['types'],'bundleVersion':this['bundleVersion'],'lastOperationId':this['lastOperationId']};}static['fromJSON'](_0x3c8b45){return new CollaborativeEditingConnectMessage(_0x3c8b45['id'],_0x3c8b45['buffers'],_0x3c8b45['types'],_0x3c8b45['bundleVersion'],_0x3c8b45['lastOperationId']);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x5184ff from'./../../message.js';export default class CollaborativeEditingReconnectMessage extends _0x5184ff{['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(_0xc96ab9,_0x4cfb1f,_0x8fe8a4){super(),this['id']=_0xc96ab9,this['lastKnowVersion']=_0x4cfb1f,this['bundleVersion']=_0x8fe8a4;}['toJSON'](){return{'id':this['id'],'bundleVersion':this['bundleVersion'],'lastKnowVersion':this['lastKnowVersion']};}static['fromJSON'](_0x217f11){return new CollaborativeEditingReconnectMessage(_0x217f11['id'],_0x217f11['lastKnowVersion'],_0x217f11['bundleVersion']);}}
23
+ import _0xbd3fc0 from'./../../message.js';export default class CollaborativeEditingReconnectMessage extends _0xbd3fc0{['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(_0x1fd11a,_0x10896e,_0x53a7ec){super(),this['id']=_0x1fd11a,this['lastKnowVersion']=_0x10896e,this['bundleVersion']=_0x53a7ec;}['toJSON'](){return{'id':this['id'],'bundleVersion':this['bundleVersion'],'lastKnowVersion':this['lastKnowVersion']};}static['fromJSON'](_0x225b94){return new CollaborativeEditingReconnectMessage(_0x225b94['id'],_0x225b94['lastKnowVersion'],_0x225b94['bundleVersion']);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x3eda12 from'./../../message.js';import _0x31e99b from'./../helpers/operationmetadatahelpers.js';import _0x4347ee from'../descriptors/operationmetadatadescriptor.js';export default class CollaborativeEditingUpdateMessage extends _0x3eda12{['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(_0x37ec84,_0x15cfdc,_0x9eb839,_0x548b15,_0x52b545=[],_0x30b0f1=''){super(),this['id']=_0x37ec84,this['buffers']=_0x15cfdc,this['types']=_0x9eb839,this['baseVersion']=_0x548b15,this['metadata']=_0x52b545,this['lastOperationId']=_0x30b0f1;}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':_0x31e99b['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](_0x4347ee['toJSON']),'lastOperationId':this['lastOperationId']};}static['fromJSON'](_0x11b719){return new CollaborativeEditingUpdateMessage(_0x11b719['id'],_0x11b719['buffers'],_0x11b719['types'],_0x11b719['baseVersion'],_0x31e99b['prepareMetadataForOperations'](_0x11b719['types'],_0x11b719['metadata'])['map'](_0x4347ee['fromJSON']),_0x11b719['lastOperationId']);}}
23
+ import _0x494446 from'./../../message.js';import _0x8adcb4 from'./../helpers/operationmetadatahelpers.js';import _0x231131 from'../descriptors/operationmetadatadescriptor.js';export default class CollaborativeEditingUpdateMessage extends _0x494446{['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(_0x21ab86,_0x4ee7f4,_0x281d43,_0x2647c6,_0x334abd=[],_0x367c60=''){super(),this['id']=_0x21ab86,this['buffers']=_0x4ee7f4,this['types']=_0x281d43,this['baseVersion']=_0x2647c6,this['metadata']=_0x334abd,this['lastOperationId']=_0x367c60;}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':_0x8adcb4['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](_0x231131['toJSON']),'lastOperationId':this['lastOperationId']};}static['fromJSON'](_0x441aca){return new CollaborativeEditingUpdateMessage(_0x441aca['id'],_0x441aca['buffers'],_0x441aca['types'],_0x441aca['baseVersion'],_0x8adcb4['prepareMetadataForOperations'](_0x441aca['types'],_0x441aca['metadata'])['map'](_0x231131['fromJSON']),_0x441aca['lastOperationId']);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x2590ad from'../../message.js';export default class GetDocumentDetailsMessage extends _0x2590ad{['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(_0xf53026){super(),this['documentId']=_0xf53026;}get['data'](){return{'documentId':this['documentId']};}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x1495fe){return new GetDocumentDetailsMessage(_0x1495fe['documentId']);}}
23
+ import _0x512349 from'../../message.js';export default class GetDocumentDetailsMessage extends _0x512349{['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(_0x47878a){super(),this['documentId']=_0x47878a;}get['data'](){return{'documentId':this['documentId']};}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x471764){return new GetDocumentDetailsMessage(_0x471764['documentId']);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x205dc2 from'./../../message.js';import _0x3f61a0 from'./../helpers/operationmetadatahelpers.js';import _0x4a4459 from'../descriptors/operationmetadatadescriptor.js';export default class CollaborativeEditingConnectResponse extends _0x205dc2{['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':_0x4a4459['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(_0x444946,_0x353bd2,_0x320f39=[],_0x3aaf56=[],_0x251153=0x0,_0x2d6093=[],_0x56d9eb=null,_0x51ded3='',_0x3d7be3='',_0x20166e=null){super(),this['channel']=_0x444946,this['version']=_0x353bd2,this['buffers']=_0x320f39,this['types']=_0x3aaf56,this['offset']=_0x251153,this['metadata']=_0x2d6093,this['initData']=_0x56d9eb,this['sessionId']=_0x51ded3,this['lastOperationId']=_0x3d7be3,this['sessionCreatedAt']=_0x20166e;}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':_0x3f61a0['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](_0x4a4459['toJSON']),'initData':this['initData']??'','isInitialized':'string'==typeof this['initData'],'lastOperationId':this['lastOperationId'],'sessionCreatedAt':this['sessionCreatedAt']?this['sessionCreatedAt']['toISOString']():null};}static['create'](_0x3a3914){return new CollaborativeEditingConnectResponse(_0x3a3914['channel'],_0x3a3914['version'],_0x3a3914['buffers'],_0x3a3914['types'],_0x3a3914['offset'],_0x3a3914['metadata'],_0x3a3914['initData'],_0x3a3914['sessionId'],_0x3a3914['lastOperationId'],_0x3a3914['sessionCreatedAt']);}static['fromJSON'](_0x3ff727){let _0x36a2cc=null;return!0x0===_0x3ff727['isInitialized']?_0x36a2cc=_0x3ff727['initData']??'':'boolean'!=typeof _0x3ff727['isInitialized']&&_0x3ff727['initData']&&(_0x36a2cc=_0x3ff727['initData']),CollaborativeEditingConnectResponse['create']({'channel':_0x3ff727['channel'],'version':_0x3ff727['version'],'buffers':_0x3ff727['buffers'],'types':_0x3ff727['types'],'offset':_0x3ff727['offset'],'metadata':_0x3f61a0['prepareMetadataForOperations'](_0x3ff727['types'],_0x3ff727['metadata'])['map'](_0x4a4459['fromJSON']),'initData':_0x36a2cc,'sessionId':_0x3ff727['sessionId'],'lastOperationId':_0x3ff727['lastOperationId'],'sessionCreatedAt':_0x3ff727['sessionCreatedAt']?new Date(_0x3ff727['sessionCreatedAt']):null});}}
23
+ import _0x427151 from'./../../message.js';import _0x29c62f from'./../helpers/operationmetadatahelpers.js';import _0x1d7790 from'../descriptors/operationmetadatadescriptor.js';export default class CollaborativeEditingConnectResponse extends _0x427151{['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':_0x1d7790['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(_0x5b4b24,_0x2c27df,_0x1ba076=[],_0x5954a1=[],_0x300bb0=0x0,_0x106289=[],_0x46690b=null,_0x54cf8a='',_0x35dbad='',_0x4ca77e=null){super(),this['channel']=_0x5b4b24,this['version']=_0x2c27df,this['buffers']=_0x1ba076,this['types']=_0x5954a1,this['offset']=_0x300bb0,this['metadata']=_0x106289,this['initData']=_0x46690b,this['sessionId']=_0x54cf8a,this['lastOperationId']=_0x35dbad,this['sessionCreatedAt']=_0x4ca77e;}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':_0x29c62f['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](_0x1d7790['toJSON']),'initData':this['initData']??'','isInitialized':'string'==typeof this['initData'],'lastOperationId':this['lastOperationId'],'sessionCreatedAt':this['sessionCreatedAt']?this['sessionCreatedAt']['toISOString']():null};}static['create'](_0x3e2ce6){return new CollaborativeEditingConnectResponse(_0x3e2ce6['channel'],_0x3e2ce6['version'],_0x3e2ce6['buffers'],_0x3e2ce6['types'],_0x3e2ce6['offset'],_0x3e2ce6['metadata'],_0x3e2ce6['initData'],_0x3e2ce6['sessionId'],_0x3e2ce6['lastOperationId'],_0x3e2ce6['sessionCreatedAt']);}static['fromJSON'](_0xc19588){let _0x183828=null;return!0x0===_0xc19588['isInitialized']?_0x183828=_0xc19588['initData']??'':'boolean'!=typeof _0xc19588['isInitialized']&&_0xc19588['initData']&&(_0x183828=_0xc19588['initData']),CollaborativeEditingConnectResponse['create']({'channel':_0xc19588['channel'],'version':_0xc19588['version'],'buffers':_0xc19588['buffers'],'types':_0xc19588['types'],'offset':_0xc19588['offset'],'metadata':_0x29c62f['prepareMetadataForOperations'](_0xc19588['types'],_0xc19588['metadata'])['map'](_0x1d7790['fromJSON']),'initData':_0x183828,'sessionId':_0xc19588['sessionId'],'lastOperationId':_0xc19588['lastOperationId'],'sessionCreatedAt':_0xc19588['sessionCreatedAt']?new Date(_0xc19588['sessionCreatedAt']):null});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x1b0bb5 from'./../../message.js';import _0x5d3403 from'./../helpers/operationmetadatahelpers.js';import _0x1bca2a from'../descriptors/operationmetadatadescriptor.js';export default class CollaborativeEditingResponse extends _0x1b0bb5{['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(_0x23e2e9,_0x3cb9e2=[],_0x3031e3=[],_0x460dcf=[],_0x442990='',_0x15044b=null){super(),this['version']=_0x23e2e9,this['buffers']=_0x3cb9e2,this['types']=_0x3031e3,this['metadata']=_0x460dcf,this['lastOperationId']=_0x442990,this['lastOperationAcceptedAt']=_0x15044b;}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':_0x5d3403['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](_0x1bca2a['toJSON']),'lastOperationId':this['lastOperationId'],'lastOperationAcceptedAt':this['lastOperationAcceptedAt']instanceof Date?this['lastOperationAcceptedAt']['toISOString']():this['lastOperationAcceptedAt']};}static['fromJSON'](_0x5e6477){return new CollaborativeEditingResponse(_0x5e6477['version'],_0x5e6477['buffers'],_0x5e6477['types'],_0x5d3403['prepareMetadataForOperations'](_0x5e6477['types'],_0x5e6477['metadata'])['map'](_0x1bca2a['fromJSON']),_0x5e6477['lastOperationId'],_0x5e6477['lastOperationAcceptedAt']?new Date(_0x5e6477['lastOperationAcceptedAt']):null);}static['create'](_0x23ef13){return new CollaborativeEditingResponse(_0x23ef13['version'],_0x23ef13['buffers'],_0x23ef13['types'],_0x23ef13['metadata'],_0x23ef13['lastOperationId'],_0x23ef13['lastOperationAcceptedAt']?new Date(_0x23ef13['lastOperationAcceptedAt']):null);}}
23
+ import _0x31061e from'./../../message.js';import _0x53cf26 from'./../helpers/operationmetadatahelpers.js';import _0x433907 from'../descriptors/operationmetadatadescriptor.js';export default class CollaborativeEditingResponse extends _0x31061e{['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(_0xdd5479,_0x48b4b1=[],_0x3290b4=[],_0x37553c=[],_0x49d7f3='',_0x50576f=null){super(),this['version']=_0xdd5479,this['buffers']=_0x48b4b1,this['types']=_0x3290b4,this['metadata']=_0x37553c,this['lastOperationId']=_0x49d7f3,this['lastOperationAcceptedAt']=_0x50576f;}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':_0x53cf26['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](_0x433907['toJSON']),'lastOperationId':this['lastOperationId'],'lastOperationAcceptedAt':this['lastOperationAcceptedAt']instanceof Date?this['lastOperationAcceptedAt']['toISOString']():this['lastOperationAcceptedAt']};}static['fromJSON'](_0x3fd32e){return new CollaborativeEditingResponse(_0x3fd32e['version'],_0x3fd32e['buffers'],_0x3fd32e['types'],_0x53cf26['prepareMetadataForOperations'](_0x3fd32e['types'],_0x3fd32e['metadata'])['map'](_0x433907['fromJSON']),_0x3fd32e['lastOperationId'],_0x3fd32e['lastOperationAcceptedAt']?new Date(_0x3fd32e['lastOperationAcceptedAt']):null);}static['create'](_0x24148d){return new CollaborativeEditingResponse(_0x24148d['version'],_0x24148d['buffers'],_0x24148d['types'],_0x24148d['metadata'],_0x24148d['lastOperationId'],_0x24148d['lastOperationAcceptedAt']?new Date(_0x24148d['lastOperationAcceptedAt']):null);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x5c6b5f from'./../../message.js';export default class GetDocumentDetailsResponse extends _0x5c6b5f{['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(_0x37080c,_0x1fe952){super(),this['lastDocumentSession']=_0x37080c,this['currentDocumentSession']=_0x1fe952;}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'](_0x260573){const _0x5c85e1=_0x260573['lastDocumentSessionId']?{'id':_0x260573['lastDocumentSessionId'],'lastOperationId':_0x260573['lastDocumentSessionOperationId']}:void 0x0,_0x4cf6d6=_0x260573['currentDocumentSessionId']?{'lastOperationId':_0x260573['currentDocumentSessionOperationId'],'version':_0x260573['currentDocumentSessionVersion'],'id':_0x260573['currentDocumentSessionId']}:void 0x0;return new GetDocumentDetailsResponse(_0x5c85e1,_0x4cf6d6);}}
23
+ import _0x57b9f1 from'./../../message.js';export default class GetDocumentDetailsResponse extends _0x57b9f1{['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(_0x2f5a16,_0x535d0a){super(),this['lastDocumentSession']=_0x2f5a16,this['currentDocumentSession']=_0x535d0a;}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'](_0x3767fd){const _0x3ad11b=_0x3767fd['lastDocumentSessionId']?{'id':_0x3767fd['lastDocumentSessionId'],'lastOperationId':_0x3767fd['lastDocumentSessionOperationId']}:void 0x0,_0x2241db=_0x3767fd['currentDocumentSessionId']?{'lastOperationId':_0x3767fd['currentDocumentSessionOperationId'],'version':_0x3767fd['currentDocumentSessionVersion'],'id':_0x3767fd['currentDocumentSessionId']}:void 0x0;return new GetDocumentDetailsResponse(_0x3ad11b,_0x2241db);}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{EmitterMixin}from'ckeditor5/src/utils.js';import _0x56ec72 from'./../messagescompressor.js';import _0x28f1cc from'./messages/addcommentmessage.js';import _0x1a5b7d from'./responses/addcommentresponse.js';import _0x56ac01 from'./messages/connectmessage.js';import _0x709503 from'./responses/connectresponse.js';import _0x11b0dc from'./messages/removecommentmessage.js';import _0x12c1eb from'./messages/removecommentthreadmessage.js';import _0x36cd66 from'./messages/updatecommentmessage.js';import _0x3d5803 from'./messages/getcommentthreadmessage.js';import _0x1a2194 from'./responses/getcommentthreadresponse.js';import _0x5e4261 from'./messages/getdocumentthreadsmessage.js';import _0x1e99cd from'./responses/getdocumentthreadsresponse.js';import _0x51ef09,{WEB_SOCKET_GATEWAY_STATES}from'./../websocketgateway/websocketgateway.js';import _0x156128 from'./../ckeditorcloudserviceserror.js';import _0xd1f638 from'../sessions/sessions.js';import _0x53453f from'../errors/ServiceNotConnectedError.js';import _0x49d4b0 from'../ckeditorcloudservicesservererror.js';import _0x232322 from'./responses/comment-threads/addcommentthreadresponse.js';import _0x5e2981 from'./messages/comment-threads/addcommentthreadmessage.js';import _0x2f4512 from'./messages/comment-threads/resolvecommentthreadmessage.js';import _0x41a82e from'./messages/comment-threads/reopencommentthreadmessage.js';import _0x9b84dd from'./messages/comment-threads/updatecommentthreadmessage.js';import _0x119928 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(_0x2df287){super(),this['_documentId']=_0x2df287;}get['isConnected'](){return this['_isConnected'];}async['connect'](_0xcd4c6f){if(this['_isConnected'])return;if(_0xcd4c6f['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new _0x156128('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0xcd4c6f);const _0x54e211=new _0x56ac01(this['_documentId']);this['_wsGateway']=_0xcd4c6f,this['stopListening'](_0xcd4c6f,'change:state');const _0x5a5374=await _0xcd4c6f['_sendRequest'](0x9,_0x56ac01['TYPE'],_0x56ec72['encode'](_0x54e211)),{channel:_0x391da4,threads:_0x43c6e3}=_0x56ec72['decode'](_0x5a5374,_0x709503);return this['listenTo'](_0xcd4c6f,'change:state',(_0x150750,_0x565946,_0x4a5f62)=>this['_onWsGatewayStateChange'](_0x4a5f62),{'priority':_0x51ef09['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0xcd4c6f,_0x391da4),this['_isConnected']=!0x0,this['fire']('connected'),_0x43c6e3;}['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'](_0x33e65a,_0xc0f2bf,_0x2579be,_0x5d7820){const _0x20cca9=new _0x28f1cc(this['_documentId'],_0x33e65a,_0x2579be,_0xc0f2bf,void 0x0,void 0x0,_0x5d7820),_0x173fa2=await this['_sendRequest'](_0x28f1cc['TYPE'],_0x20cca9);return _0x56ec72['decode'](_0x173fa2,_0x1a5b7d);}async['updateComment'](_0x27db6f,_0x2f8817,_0x27d950,_0x428d22){const _0x3481a7=void 0x0!==_0x428d22,_0x140cd6=new _0x36cd66(this['_documentId'],_0x27db6f,_0x2f8817,_0x27d950,_0x428d22,_0x3481a7);await this['_sendRequest'](_0x36cd66['TYPE'],_0x140cd6);}async['removeComment'](_0x145791,_0x31caa1){const _0x17c87a=new _0x11b0dc(this['_documentId'],_0x145791,_0x31caa1);await this['_sendRequest'](_0x11b0dc['TYPE'],_0x17c87a);}async['removeCommentThread'](_0x32c5c9){const _0x21aa1b=new _0x12c1eb(this['_documentId'],_0x32c5c9);await this['_sendRequest'](_0x12c1eb['TYPE'],_0x21aa1b);}async['addCommentThread'](_0x9dbb35){const _0x42a2e8=new _0x5e2981(this['_documentId'],_0x9dbb35['commentThreadId'],_0x9dbb35['comments']?.['map'](_0x1d22ef=>({..._0x1d22ef,'documentId':this['_documentId'],'commentThreadId':_0x9dbb35['commentThreadId']})),_0x9dbb35['context'],_0x9dbb35['resolvedBy'],_0x9dbb35['createdAt'],_0x9dbb35['resolvedAt'],_0x9dbb35['deletedAt'],_0x9dbb35['attributes']),_0x340681=await this['_sendRequest'](_0x5e2981['TYPE'],_0x42a2e8);return _0x56ec72['decode'](_0x340681,_0x232322);}async['resolveCommentThread'](_0x2d0274){const _0x3b3da4=new _0x2f4512(_0x2d0274,this['_documentId']),_0x5e8c03=await this['_sendRequest'](_0x2f4512['TYPE'],_0x3b3da4);return _0x56ec72['decode'](_0x5e8c03,_0x119928);}async['reopenCommentThread'](_0x20baed){const _0x6fc9d5=new _0x41a82e(_0x20baed,this['_documentId']);await this['_sendRequest'](_0x41a82e['TYPE'],_0x6fc9d5);}async['updateCommentThread'](_0x32196f){const _0x28af41=new _0x9b84dd(_0x32196f['commentThreadId'],this['_documentId'],_0x32196f['context'],_0x32196f['attributes'],_0x32196f['unlinkedAt']);await this['_sendRequest'](_0x9b84dd['TYPE'],_0x28af41);}async['getCommentThread'](_0x56a997,_0x39e13b=0x1){const _0x5c16b6=new _0x3d5803(_0x56a997,this['_documentId']);try{const _0x134210=await this['_sendRequest'](_0x3d5803['TYPE'],_0x5c16b6),_0x44802b=_0x56ec72['decode'](_0x134210,_0x1a2194);return{'commentThreadId':_0x44802b['commentThreadId'],'comments':_0x44802b['comments'],'attributes':_0x44802b['attributes'],'context':_0x44802b['context'],'resolvedAt':_0x44802b['resolvedAt'],'resolvedBy':_0x44802b['resolvedBy'],'deletedAt':_0x44802b['deletedAt'],'unlinkedAt':_0x44802b['unlinkedAt']};}catch(_0x4c84bb){if('CKEditorCloudServicesServerError'===_0x4c84bb['name']&&'404'===_0x4c84bb['code']&&_0x39e13b<0x5)return await(_0xd43501=0x64*_0x39e13b,new Promise(_0x26f53d=>{setTimeout(_0x26f53d,_0xd43501);})),this['getCommentThread'](_0x56a997,_0x39e13b+0x1);if('CKEditorCloudServicesServerError'===_0x4c84bb['name'])throw _0x4c84bb;throw _0x49d4b0['fromPublicError'](_0x4c84bb);}var _0xd43501;}async['getDocumentThreads'](){const _0x3062d6=new _0x5e4261(this['_documentId']),_0xe3b79c=await this['_sendRequest'](_0x5e4261['TYPE'],_0x3062d6),{threads:_0x23c20b}=_0x56ec72['decode'](_0xe3b79c,_0x1e99cd);return{'threads':_0x23c20b};}async['getConnectedSessions'](){if(!this['_isConnected'])throw new _0x53453f('Comments',this);return this['_connectedSessions']||(this['_connectedSessions']=await _0xd1f638['getConnectedSessions'](this['_wsGateway'],this['_documentId'],0x9)),this['_connectedSessions'];}['_connectToChannel'](_0x3f5c7e,_0x12b0ee){this['_channel']=_0x3f5c7e['_getChannel'](CommentsService['_SERVICE'],_0x12b0ee),this['_channel']&&(this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x28f1cc['TYPE']),(_0x25fea6,_0xd20e32)=>{const _0x3513e4=_0x56ec72['decode'](_0xd20e32,_0x28f1cc);this['fire']('commentAdded',_0x3513e4);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x11b0dc['TYPE']),(_0xd898d9,_0x549073)=>{const _0x188e9c=_0x56ec72['decode'](_0x549073,_0x11b0dc);this['fire']('commentRemoved',_0x188e9c);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x36cd66['TYPE']),(_0x22e8c5,_0x8e60d)=>{const _0xe10c85=_0x56ec72['decode'](_0x8e60d,_0x36cd66);this['fire']('commentUpdated',_0xe10c85);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x12c1eb['TYPE']),(_0x3f9044,_0x37f353)=>{const _0x500249=_0x56ec72['decode'](_0x37f353,_0x12c1eb);this['fire']('commentThreadRemoved',_0x500249);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x5e2981['TYPE']),(_0x73a236,_0x1b2c94)=>{const _0x7fa6c6=_0x56ec72['decode'](_0x1b2c94,_0x5e2981);this['fire']('commentThreadAdded',_0x7fa6c6);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x9b84dd['TYPE']),(_0x1d41d3,_0x3f8617)=>{const _0x297c67=_0x56ec72['decode'](_0x3f8617,_0x9b84dd);this['fire']('commentThreadUpdated',_0x297c67);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x2f4512['TYPE']),(_0x2efd45,_0x47f5f3)=>{const _0x177e00=_0x56ec72['decode'](_0x47f5f3,_0x2f4512);this['fire']('commentThreadResolved',_0x177e00);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x41a82e['TYPE']),(_0x24b830,_0x2c6876)=>{const _0x4928ae=_0x56ec72['decode'](_0x2c6876,_0x41a82e);this['fire']('commentThreadReopened',_0x4928ae);}));}['_onWsGatewayStateChange'](_0x549d17){_0x549d17===WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['disconnect']();}['_sendRequest'](_0x59204f,_0x1a79af){if(!this['_wsGateway']||!this['_isConnected'])throw new _0x53453f('Comments',this);return this['_wsGateway']['_sendRequest'](0x9,_0x59204f,_0x56ec72['encode'](_0x1a79af));}}export default CommentsService;
23
+ import{EmitterMixin}from'ckeditor5/src/utils.js';import _0x4748aa from'./../messagescompressor.js';import _0x3ad525 from'./messages/addcommentmessage.js';import _0x4da7e9 from'./responses/addcommentresponse.js';import _0x25863f from'./messages/connectmessage.js';import _0x5634af from'./responses/connectresponse.js';import _0x2d0fb5 from'./messages/removecommentmessage.js';import _0x16af3c from'./messages/removecommentthreadmessage.js';import _0x56add9 from'./messages/updatecommentmessage.js';import _0x541989 from'./messages/getcommentthreadmessage.js';import _0x5dbe6f from'./responses/getcommentthreadresponse.js';import _0x199a26 from'./messages/getdocumentthreadsmessage.js';import _0x45d0cd from'./responses/getdocumentthreadsresponse.js';import _0x4d9097,{WEB_SOCKET_GATEWAY_STATES}from'./../websocketgateway/websocketgateway.js';import _0x29a8b9 from'./../ckeditorcloudserviceserror.js';import _0x45ba95 from'../sessions/sessions.js';import _0x5cf06b from'../errors/ServiceNotConnectedError.js';import _0x588301 from'../ckeditorcloudservicesservererror.js';import _0x21ed84 from'./responses/comment-threads/addcommentthreadresponse.js';import _0x46fc43 from'./messages/comment-threads/addcommentthreadmessage.js';import _0x1d6f2b from'./messages/comment-threads/resolvecommentthreadmessage.js';import _0xb7d7a9 from'./messages/comment-threads/reopencommentthreadmessage.js';import _0xf0353e from'./messages/comment-threads/updatecommentthreadmessage.js';import _0x27e00d 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(_0x31be3b){super(),this['_documentId']=_0x31be3b;}get['isConnected'](){return this['_isConnected'];}async['connect'](_0x473c5a){if(this['_isConnected'])return;if(_0x473c5a['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new _0x29a8b9('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x473c5a);const _0x1d27b1=new _0x25863f(this['_documentId']);this['_wsGateway']=_0x473c5a,this['stopListening'](_0x473c5a,'change:state');const _0x3ab509=await _0x473c5a['_sendRequest'](0x9,_0x25863f['TYPE'],_0x4748aa['encode'](_0x1d27b1)),{channel:_0x52b463,threads:_0x1f8c4b}=_0x4748aa['decode'](_0x3ab509,_0x5634af);return this['listenTo'](_0x473c5a,'change:state',(_0x365d04,_0x236038,_0x129b4e)=>this['_onWsGatewayStateChange'](_0x129b4e),{'priority':_0x4d9097['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0x473c5a,_0x52b463),this['_isConnected']=!0x0,this['fire']('connected'),_0x1f8c4b;}['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'](_0x2505a2,_0x2d547d,_0x5efa0d,_0x293316){const _0x5824fd=new _0x3ad525(this['_documentId'],_0x2505a2,_0x5efa0d,_0x2d547d,void 0x0,void 0x0,_0x293316),_0x317cf3=await this['_sendRequest'](_0x3ad525['TYPE'],_0x5824fd);return _0x4748aa['decode'](_0x317cf3,_0x4da7e9);}async['updateComment'](_0x396e7f,_0x4f45c1,_0x500092,_0x3592cf){const _0x1bd2a5=void 0x0!==_0x3592cf,_0x4e94a0=new _0x56add9(this['_documentId'],_0x396e7f,_0x4f45c1,_0x500092,_0x3592cf,_0x1bd2a5);await this['_sendRequest'](_0x56add9['TYPE'],_0x4e94a0);}async['removeComment'](_0x2cf692,_0x1eee32){const _0x167132=new _0x2d0fb5(this['_documentId'],_0x2cf692,_0x1eee32);await this['_sendRequest'](_0x2d0fb5['TYPE'],_0x167132);}async['removeCommentThread'](_0x23f832){const _0x2d8326=new _0x16af3c(this['_documentId'],_0x23f832);await this['_sendRequest'](_0x16af3c['TYPE'],_0x2d8326);}async['addCommentThread'](_0x15e62c){const _0x504e80=new _0x46fc43(this['_documentId'],_0x15e62c['commentThreadId'],_0x15e62c['comments']?.['map'](_0x2412f9=>({..._0x2412f9,'documentId':this['_documentId'],'commentThreadId':_0x15e62c['commentThreadId']})),_0x15e62c['context'],_0x15e62c['resolvedBy'],_0x15e62c['createdAt'],_0x15e62c['resolvedAt'],_0x15e62c['deletedAt'],_0x15e62c['attributes']),_0x49a3aa=await this['_sendRequest'](_0x46fc43['TYPE'],_0x504e80);return _0x4748aa['decode'](_0x49a3aa,_0x21ed84);}async['resolveCommentThread'](_0x41c605){const _0x1e5249=new _0x1d6f2b(_0x41c605,this['_documentId']),_0x2a3e26=await this['_sendRequest'](_0x1d6f2b['TYPE'],_0x1e5249);return _0x4748aa['decode'](_0x2a3e26,_0x27e00d);}async['reopenCommentThread'](_0x4b1efe){const _0x5a6c03=new _0xb7d7a9(_0x4b1efe,this['_documentId']);await this['_sendRequest'](_0xb7d7a9['TYPE'],_0x5a6c03);}async['updateCommentThread'](_0x59a64a){const _0x27c13d=new _0xf0353e(_0x59a64a['commentThreadId'],this['_documentId'],_0x59a64a['context'],_0x59a64a['attributes'],_0x59a64a['unlinkedAt']);await this['_sendRequest'](_0xf0353e['TYPE'],_0x27c13d);}async['getCommentThread'](_0x2e23c2,_0x23b928=0x1){const _0x4efec3=new _0x541989(_0x2e23c2,this['_documentId']);try{const _0x52560c=await this['_sendRequest'](_0x541989['TYPE'],_0x4efec3),_0x4d185a=_0x4748aa['decode'](_0x52560c,_0x5dbe6f);return{'commentThreadId':_0x4d185a['commentThreadId'],'comments':_0x4d185a['comments'],'attributes':_0x4d185a['attributes'],'context':_0x4d185a['context'],'resolvedAt':_0x4d185a['resolvedAt'],'resolvedBy':_0x4d185a['resolvedBy'],'deletedAt':_0x4d185a['deletedAt'],'unlinkedAt':_0x4d185a['unlinkedAt']};}catch(_0x59b56e){if('CKEditorCloudServicesServerError'===_0x59b56e['name']&&'404'===_0x59b56e['code']&&_0x23b928<0x5)return await(_0x9eee3f=0x64*_0x23b928,new Promise(_0x2b43cd=>{setTimeout(_0x2b43cd,_0x9eee3f);})),this['getCommentThread'](_0x2e23c2,_0x23b928+0x1);if('CKEditorCloudServicesServerError'===_0x59b56e['name'])throw _0x59b56e;throw _0x588301['fromPublicError'](_0x59b56e);}var _0x9eee3f;}async['getDocumentThreads'](){const _0x1cf1f2=new _0x199a26(this['_documentId']),_0x3dedb4=await this['_sendRequest'](_0x199a26['TYPE'],_0x1cf1f2),{threads:_0x3e7342}=_0x4748aa['decode'](_0x3dedb4,_0x45d0cd);return{'threads':_0x3e7342};}async['getConnectedSessions'](){if(!this['_isConnected'])throw new _0x5cf06b('Comments',this);return this['_connectedSessions']||(this['_connectedSessions']=await _0x45ba95['getConnectedSessions'](this['_wsGateway'],this['_documentId'],0x9)),this['_connectedSessions'];}['_connectToChannel'](_0x18e806,_0x3c09d1){this['_channel']=_0x18e806['_getChannel'](CommentsService['_SERVICE'],_0x3c09d1),this['_channel']&&(this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x3ad525['TYPE']),(_0xaf50ba,_0x38b655)=>{const _0x833dee=_0x4748aa['decode'](_0x38b655,_0x3ad525);this['fire']('commentAdded',_0x833dee);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x2d0fb5['TYPE']),(_0x2d716f,_0x17a58f)=>{const _0x52fa60=_0x4748aa['decode'](_0x17a58f,_0x2d0fb5);this['fire']('commentRemoved',_0x52fa60);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x56add9['TYPE']),(_0x12f6a4,_0x3ee431)=>{const _0x1cbe07=_0x4748aa['decode'](_0x3ee431,_0x56add9);this['fire']('commentUpdated',_0x1cbe07);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x16af3c['TYPE']),(_0x18cdef,_0x1d2d75)=>{const _0x14fc4c=_0x4748aa['decode'](_0x1d2d75,_0x16af3c);this['fire']('commentThreadRemoved',_0x14fc4c);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x46fc43['TYPE']),(_0x4110ad,_0x3944c5)=>{const _0xf2bd88=_0x4748aa['decode'](_0x3944c5,_0x46fc43);this['fire']('commentThreadAdded',_0xf2bd88);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0xf0353e['TYPE']),(_0x44b364,_0x2c7a08)=>{const _0x1eacd9=_0x4748aa['decode'](_0x2c7a08,_0xf0353e);this['fire']('commentThreadUpdated',_0x1eacd9);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x1d6f2b['TYPE']),(_0x4a7661,_0x2f65fa)=>{const _0x5745bd=_0x4748aa['decode'](_0x2f65fa,_0x1d6f2b);this['fire']('commentThreadResolved',_0x5745bd);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0xb7d7a9['TYPE']),(_0x73d47c,_0x21cbab)=>{const _0x41b91b=_0x4748aa['decode'](_0x21cbab,_0xb7d7a9);this['fire']('commentThreadReopened',_0x41b91b);}));}['_onWsGatewayStateChange'](_0x2f8a7f){_0x2f8a7f===WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['disconnect']();}['_sendRequest'](_0x4b1477,_0x28431b){if(!this['_wsGateway']||!this['_isConnected'])throw new _0x5cf06b('Comments',this);return this['_wsGateway']['_sendRequest'](0x9,_0x4b1477,_0x4748aa['encode'](_0x28431b));}}export default CommentsService;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x5bc5d8 from'./../../descriptor.js';export default class CommentDescriptor extends _0x5bc5d8{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'](_0x1eb4e0){return{..._0x1eb4e0,'createdAt':_0x1eb4e0['createdAt']?.['toISOString'](),'attributes':_0x1eb4e0['attributes']?JSON['stringify'](_0x1eb4e0['attributes']):null};}static['fromJSON'](_0x251bc5){return{..._0x251bc5,'createdAt':new Date(_0x251bc5['createdAt']),'attributes':_0x251bc5['attributes']?JSON['parse'](_0x251bc5['attributes']):null};}}
23
+ import _0x163c31 from'./../../descriptor.js';export default class CommentDescriptor extends _0x163c31{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'](_0x2873f8){return{..._0x2873f8,'createdAt':_0x2873f8['createdAt']?.['toISOString'](),'attributes':_0x2873f8['attributes']?JSON['stringify'](_0x2873f8['attributes']):null};}static['fromJSON'](_0x948ade){return{..._0x948ade,'createdAt':new Date(_0x948ade['createdAt']),'attributes':_0x948ade['attributes']?JSON['parse'](_0x948ade['attributes']):null};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x2fb425 from'./../../descriptor.js';import _0x327e94 from'./commentdescriptor.js';export default class CommentsThreadDescriptor extends _0x2fb425{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'](_0x51a2fb){return{..._0x51a2fb,'createdAt':_0x51a2fb['createdAt']?.['toISOString'](),'deletedAt':_0x51a2fb['deletedAt']?.['toISOString'](),'resolvedAt':_0x51a2fb['resolvedAt']?.['toISOString'](),'attributes':_0x51a2fb['attributes']?JSON['stringify'](_0x51a2fb['attributes']):null,'context':_0x51a2fb['context']?JSON['stringify'](_0x51a2fb['context']):_0x51a2fb['context'],'comments':_0x51a2fb['comments']?.['map'](_0x327e94['toJSON']),'unlinkedAt':_0x51a2fb['unlinkedAt']?.['toISOString']()};}static['fromJSON'](_0x246580){return{..._0x246580,'createdAt':_0x246580['createdAt']?new Date(_0x246580['createdAt']):void 0x0,'deletedAt':_0x246580['deletedAt']?new Date(_0x246580['deletedAt']):void 0x0,'resolvedAt':_0x246580['resolvedAt']?new Date(_0x246580['resolvedAt']):void 0x0,'attributes':_0x246580['attributes']?JSON['parse'](_0x246580['attributes']):null,'context':_0x246580['context']?JSON['parse'](_0x246580['context']):void 0x0,'comments':_0x246580['comments']?.['map'](_0x327e94['fromJSON']),'unlinkedAt':_0x246580['unlinkedAt']?new Date(_0x246580['unlinkedAt']):void 0x0};}}
23
+ import _0x35c829 from'./../../descriptor.js';import _0x2aafe7 from'./commentdescriptor.js';export default class CommentsThreadDescriptor extends _0x35c829{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'](_0x2a174d){return{..._0x2a174d,'createdAt':_0x2a174d['createdAt']?.['toISOString'](),'deletedAt':_0x2a174d['deletedAt']?.['toISOString'](),'resolvedAt':_0x2a174d['resolvedAt']?.['toISOString'](),'attributes':_0x2a174d['attributes']?JSON['stringify'](_0x2a174d['attributes']):null,'context':_0x2a174d['context']?JSON['stringify'](_0x2a174d['context']):_0x2a174d['context'],'comments':_0x2a174d['comments']?.['map'](_0x2aafe7['toJSON']),'unlinkedAt':_0x2a174d['unlinkedAt']?.['toISOString']()};}static['fromJSON'](_0xdb28dd){return{..._0xdb28dd,'createdAt':_0xdb28dd['createdAt']?new Date(_0xdb28dd['createdAt']):void 0x0,'deletedAt':_0xdb28dd['deletedAt']?new Date(_0xdb28dd['deletedAt']):void 0x0,'resolvedAt':_0xdb28dd['resolvedAt']?new Date(_0xdb28dd['resolvedAt']):void 0x0,'attributes':_0xdb28dd['attributes']?JSON['parse'](_0xdb28dd['attributes']):null,'context':_0xdb28dd['context']?JSON['parse'](_0xdb28dd['context']):void 0x0,'comments':_0xdb28dd['comments']?.['map'](_0x2aafe7['fromJSON']),'unlinkedAt':_0xdb28dd['unlinkedAt']?new Date(_0xdb28dd['unlinkedAt']):void 0x0};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x4f0a5d from'../../descriptor.js';export default class CommentThreadAddedCommentDescriptor extends _0x4f0a5d{static ['DESCRIPTOR_NAME']='CommentThreadAddedCommentDescriptor';static ['DESCRIPTOR']={'fields':{'commentId':{'id':0x1,'type':'string'},'createdAt':{'id':0x2,'type':'string'}}};static['toJSON'](_0x5af4b7){return{'commentId':_0x5af4b7['commentId'],'createdAt':_0x5af4b7['createdAt']?.['toISOString']()};}static['fromJSON'](_0x355688){return{'commentId':_0x355688['commentId'],'createdAt':new Date(_0x355688['createdAt'])};}}
23
+ import _0x4c0512 from'../../descriptor.js';export default class CommentThreadAddedCommentDescriptor extends _0x4c0512{static ['DESCRIPTOR_NAME']='CommentThreadAddedCommentDescriptor';static ['DESCRIPTOR']={'fields':{'commentId':{'id':0x1,'type':'string'},'createdAt':{'id':0x2,'type':'string'}}};static['toJSON'](_0x4eca41){return{'commentId':_0x4eca41['commentId'],'createdAt':_0x4eca41['createdAt']?.['toISOString']()};}static['fromJSON'](_0x36c42d){return{'commentId':_0x36c42d['commentId'],'createdAt':new Date(_0x36c42d['createdAt'])};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x215f84 from'./../../message.js';import _0x28a388 from'../descriptors/commentsthreaddescriptor.js';export default class AddCommentMessage extends _0x215f84{['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(_0x5dbf0f,_0x26d363,_0x487540,_0x59efaa='',_0x4579de,_0x4ec011='',_0x49960f=null,_0x1d004e){super(),this['documentId']=_0x5dbf0f,this['commentThreadId']=_0x26d363,this['content']=_0x487540,this['commentId']=_0x59efaa,this['userId']=_0x4ec011,this['attributes']=_0x49960f,this['commentThread']=_0x1d004e,this['createdAt']=_0x4579de?new Date(_0x4579de):'';}['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']?_0x28a388['toJSON'](this['commentThread']):void 0x0};}static['fromJSON'](_0x31b465){return new AddCommentMessage(_0x31b465['documentId'],_0x31b465['commentThreadId'],_0x31b465['content'],_0x31b465['commentId']?_0x31b465['commentId']:void 0x0,_0x31b465['createdAt']?new Date(_0x31b465['createdAt']):void 0x0,_0x31b465['userId']?_0x31b465['userId']:void 0x0,_0x31b465['attributes']?JSON['parse'](_0x31b465['attributes']):{},_0x31b465['commentThread']?_0x28a388['fromJSON'](_0x31b465['commentThread']):void 0x0);}}
23
+ import _0x4467f2 from'./../../message.js';import _0x18887d from'../descriptors/commentsthreaddescriptor.js';export default class AddCommentMessage extends _0x4467f2{['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(_0x133bd6,_0x26a8df,_0x1310ba,_0x153d63='',_0x42d623,_0x21b14a='',_0x10bfce=null,_0x4d9e5b){super(),this['documentId']=_0x133bd6,this['commentThreadId']=_0x26a8df,this['content']=_0x1310ba,this['commentId']=_0x153d63,this['userId']=_0x21b14a,this['attributes']=_0x10bfce,this['commentThread']=_0x4d9e5b,this['createdAt']=_0x42d623?new Date(_0x42d623):'';}['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']?_0x18887d['toJSON'](this['commentThread']):void 0x0};}static['fromJSON'](_0x23fd2d){return new AddCommentMessage(_0x23fd2d['documentId'],_0x23fd2d['commentThreadId'],_0x23fd2d['content'],_0x23fd2d['commentId']?_0x23fd2d['commentId']:void 0x0,_0x23fd2d['createdAt']?new Date(_0x23fd2d['createdAt']):void 0x0,_0x23fd2d['userId']?_0x23fd2d['userId']:void 0x0,_0x23fd2d['attributes']?JSON['parse'](_0x23fd2d['attributes']):{},_0x23fd2d['commentThread']?_0x18887d['fromJSON'](_0x23fd2d['commentThread']):void 0x0);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x44a40e from'../../../message.js';import _0x44ce36 from'../../descriptors/commentdescriptor.js';export default class AddCommentThreadMessage extends _0x44a40e{['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(_0x410cb5,_0x51d074,_0x21a573=[],_0x932fc1,_0x21905b=null,_0x51ecd3=null,_0x567cff=null,_0x3dfd3d=null,_0xd6d35=null){super(),this['documentId']=_0x410cb5,this['commentThreadId']=_0x51d074,this['comments']=_0x21a573,this['context']=_0x932fc1,this['resolvedBy']=_0x21905b,this['attributes']=_0xd6d35,this['createdAt']=_0x51ecd3?new Date(_0x51ecd3):'',this['resolvedAt']=_0x567cff?new Date(_0x567cff):'',this['deletedAt']=_0x3dfd3d?new Date(_0x3dfd3d):'';}['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'](_0x25a867=>_0x44ce36['toJSON'](_0x25a867))};}static['fromJSON'](_0x435821){return new AddCommentThreadMessage(_0x435821['documentId'],_0x435821['commentThreadId'],_0x435821['comments']?.['map'](_0x473ed8=>_0x44ce36['fromJSON']({..._0x473ed8,'documentId':_0x435821['documentId'],'commentThreadId':_0x435821['commentThreadId']})),_0x435821['context']?JSON['parse'](_0x435821['context']):_0x435821['context'],_0x435821['resolvedBy'],_0x435821['createdAt']?new Date(_0x435821['createdAt']):void 0x0,_0x435821['resolvedAt']?new Date(_0x435821['resolvedAt']):void 0x0,_0x435821['deletedAt']?new Date(_0x435821['deletedAt']):void 0x0,_0x435821['attributes']?JSON['parse'](_0x435821['attributes']):_0x435821['attributes']);}}
23
+ import _0x521298 from'../../../message.js';import _0x1a2a84 from'../../descriptors/commentdescriptor.js';export default class AddCommentThreadMessage extends _0x521298{['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(_0x3fc3f4,_0x38f316,_0x48b101=[],_0x544b8b,_0x503fb6=null,_0x172795=null,_0x4d0c02=null,_0x458bb2=null,_0x4736cc=null){super(),this['documentId']=_0x3fc3f4,this['commentThreadId']=_0x38f316,this['comments']=_0x48b101,this['context']=_0x544b8b,this['resolvedBy']=_0x503fb6,this['attributes']=_0x4736cc,this['createdAt']=_0x172795?new Date(_0x172795):'',this['resolvedAt']=_0x4d0c02?new Date(_0x4d0c02):'',this['deletedAt']=_0x458bb2?new Date(_0x458bb2):'';}['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'](_0xeb0e76=>_0x1a2a84['toJSON'](_0xeb0e76))};}static['fromJSON'](_0x131c9b){return new AddCommentThreadMessage(_0x131c9b['documentId'],_0x131c9b['commentThreadId'],_0x131c9b['comments']?.['map'](_0x4be1a4=>_0x1a2a84['fromJSON']({..._0x4be1a4,'documentId':_0x131c9b['documentId'],'commentThreadId':_0x131c9b['commentThreadId']})),_0x131c9b['context']?JSON['parse'](_0x131c9b['context']):_0x131c9b['context'],_0x131c9b['resolvedBy'],_0x131c9b['createdAt']?new Date(_0x131c9b['createdAt']):void 0x0,_0x131c9b['resolvedAt']?new Date(_0x131c9b['resolvedAt']):void 0x0,_0x131c9b['deletedAt']?new Date(_0x131c9b['deletedAt']):void 0x0,_0x131c9b['attributes']?JSON['parse'](_0x131c9b['attributes']):_0x131c9b['attributes']);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x1ffb79 from'../../../message.js';export default class ReopenCommentThreadMessage extends _0x1ffb79{['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(_0x3a085d,_0x184cab){super(),this['commentThreadId']=_0x3a085d,this['documentId']=_0x184cab;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId']};}static['fromJSON'](_0x13074b){return new ReopenCommentThreadMessage(_0x13074b['commentThreadId'],_0x13074b['documentId']);}}
23
+ import _0x1c94da from'../../../message.js';export default class ReopenCommentThreadMessage extends _0x1c94da{['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(_0x53a76e,_0x159b2c){super(),this['commentThreadId']=_0x53a76e,this['documentId']=_0x159b2c;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId']};}static['fromJSON'](_0x47743a){return new ReopenCommentThreadMessage(_0x47743a['commentThreadId'],_0x47743a['documentId']);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x23051e from'../../../message.js';export default class ResolveCommentThreadMessage extends _0x23051e{['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(_0x3d70e7,_0x4471ed,_0x2074ee,_0x1a3b6c){super(),this['commentThreadId']=_0x3d70e7,this['documentId']=_0x4471ed,this['resolvedBy']=_0x2074ee,this['resolvedAt']=_0x1a3b6c?new Date(_0x1a3b6c):void 0x0;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']?.['toISOString']()};}static['fromJSON'](_0x58df4d){return new ResolveCommentThreadMessage(_0x58df4d['commentThreadId'],_0x58df4d['documentId'],_0x58df4d['resolvedBy'],_0x58df4d['resolvedAt']);}}
23
+ import _0x487f72 from'../../../message.js';export default class ResolveCommentThreadMessage extends _0x487f72{['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(_0x572540,_0x523ea4,_0x37faac,_0x5d669e){super(),this['commentThreadId']=_0x572540,this['documentId']=_0x523ea4,this['resolvedBy']=_0x37faac,this['resolvedAt']=_0x5d669e?new Date(_0x5d669e):void 0x0;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']?.['toISOString']()};}static['fromJSON'](_0x1466f8){return new ResolveCommentThreadMessage(_0x1466f8['commentThreadId'],_0x1466f8['documentId'],_0x1466f8['resolvedBy'],_0x1466f8['resolvedAt']);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x108775 from'../../../message.js';export default class UpdateCommentThreadMessage extends _0x108775{['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(_0x49b566,_0x556b2c,_0x50f17a,_0x3ccb69=null,_0x5b151d=null){super(),this['commentThreadId']=_0x49b566,this['documentId']=_0x556b2c,this['context']=_0x50f17a,this['attributes']=_0x3ccb69,this['unlinkedAt']=_0x5b151d?new Date(_0x5b151d):'';}['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'](_0x55f815){return new UpdateCommentThreadMessage(_0x55f815['commentThreadId'],_0x55f815['documentId'],_0x55f815['context']?JSON['parse'](_0x55f815['context']):_0x55f815['context'],_0x55f815['attributes']?JSON['parse'](_0x55f815['attributes']):null,_0x55f815['unlinkedAt']?new Date(_0x55f815['unlinkedAt']):null);}}
23
+ import _0x54307e from'../../../message.js';export default class UpdateCommentThreadMessage extends _0x54307e{['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(_0x49987f,_0xc3e390,_0x59375c,_0x1446f2=null,_0x3fabda=null){super(),this['commentThreadId']=_0x49987f,this['documentId']=_0xc3e390,this['context']=_0x59375c,this['attributes']=_0x1446f2,this['unlinkedAt']=_0x3fabda?new Date(_0x3fabda):'';}['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'](_0x2c8e39){return new UpdateCommentThreadMessage(_0x2c8e39['commentThreadId'],_0x2c8e39['documentId'],_0x2c8e39['context']?JSON['parse'](_0x2c8e39['context']):_0x2c8e39['context'],_0x2c8e39['attributes']?JSON['parse'](_0x2c8e39['attributes']):null,_0x2c8e39['unlinkedAt']?new Date(_0x2c8e39['unlinkedAt']):null);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x4312d9 from'./../../message.js';export default class ConnectMessage extends _0x4312d9{['documentId'];static ['TYPE']='92';static ['READABLE_TYPE_NAME']='connectToComment';static ['DESCRIPTOR_NAME']='CommentsV2ConnectMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(_0x4d377f){super(),this['documentId']=_0x4d377f;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x4c2b8d){return new ConnectMessage(_0x4c2b8d['documentId']);}}
23
+ import _0x45ccf5 from'./../../message.js';export default class ConnectMessage extends _0x45ccf5{['documentId'];static ['TYPE']='92';static ['READABLE_TYPE_NAME']='connectToComment';static ['DESCRIPTOR_NAME']='CommentsV2ConnectMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(_0x458ef6){super(),this['documentId']=_0x458ef6;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x33826b){return new ConnectMessage(_0x33826b['documentId']);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0xbafb1d from'./../../message.js';export default class GetCommentThreadMessage extends _0xbafb1d{['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(_0x4d3636,_0x290aa2){super(),this['commentThreadId']=_0x4d3636,this['documentId']=_0x290aa2;}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'documentId':this['documentId']};}static['fromJSON'](_0x161494){return new GetCommentThreadMessage(_0x161494['commentThreadId'],_0x161494['documentId']);}}
23
+ import _0x28e67c from'./../../message.js';export default class GetCommentThreadMessage extends _0x28e67c{['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(_0x301e6a,_0x5b0a40){super(),this['commentThreadId']=_0x301e6a,this['documentId']=_0x5b0a40;}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'documentId':this['documentId']};}static['fromJSON'](_0x1a148e){return new GetCommentThreadMessage(_0x1a148e['commentThreadId'],_0x1a148e['documentId']);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0xbbb238 from'./../../message.js';export default class GetDocumentThreadsMessage extends _0xbbb238{['documentId'];static ['TYPE']='94';static ['READABLE_TYPE_NAME']='getDocumentThreads';static ['DESCRIPTOR_NAME']='CommentsV2GetDocumentThreadsMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(_0x4a81f7){super(),this['documentId']=_0x4a81f7;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0xfe54b1){return new GetDocumentThreadsMessage(_0xfe54b1['documentId']);}}
23
+ import _0x22826a from'./../../message.js';export default class GetDocumentThreadsMessage extends _0x22826a{['documentId'];static ['TYPE']='94';static ['READABLE_TYPE_NAME']='getDocumentThreads';static ['DESCRIPTOR_NAME']='CommentsV2GetDocumentThreadsMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(_0x35e06d){super(),this['documentId']=_0x35e06d;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x3b5b85){return new GetDocumentThreadsMessage(_0x3b5b85['documentId']);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x3874fd from'./../../message.js';export default class RemoveCommentMessage extends _0x3874fd{['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(_0x1c8a51,_0xae3408,_0x5cf055){super(),this['documentId']=_0x1c8a51,this['commentThreadId']=_0xae3408,this['commentId']=_0x5cf055;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'commentId':this['commentId']};}static['fromJSON'](_0x1f6f54){return new RemoveCommentMessage(_0x1f6f54['documentId'],_0x1f6f54['commentThreadId'],_0x1f6f54['commentId']);}}
23
+ import _0x43e801 from'./../../message.js';export default class RemoveCommentMessage extends _0x43e801{['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(_0x2611eb,_0x2ce78f,_0x1da4b4){super(),this['documentId']=_0x2611eb,this['commentThreadId']=_0x2ce78f,this['commentId']=_0x1da4b4;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'commentId':this['commentId']};}static['fromJSON'](_0x1c4a08){return new RemoveCommentMessage(_0x1c4a08['documentId'],_0x1c4a08['commentThreadId'],_0x1c4a08['commentId']);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x430f66 from'./../../message.js';export default class RemoveCommentThreadMessage extends _0x430f66{['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(_0x31809e,_0x53ad19){super(),this['documentId']=_0x31809e,this['commentThreadId']=_0x53ad19;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId']};}static['fromJSON'](_0x27174f){return new RemoveCommentThreadMessage(_0x27174f['documentId'],_0x27174f['commentThreadId']);}}
23
+ import _0x5ccc50 from'./../../message.js';export default class RemoveCommentThreadMessage extends _0x5ccc50{['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(_0x470d04,_0x4b1b76){super(),this['documentId']=_0x470d04,this['commentThreadId']=_0x4b1b76;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId']};}static['fromJSON'](_0x332a0f){return new RemoveCommentThreadMessage(_0x332a0f['documentId'],_0x332a0f['commentThreadId']);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x1a83a2 from'./../../message.js';import _0x47e51a from'../descriptors/commentsthreaddescriptor.js';export default class UpdateCommentMessage extends _0x1a83a2{['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(_0x1dd9e7,_0x360906,_0x133709,_0x59ec24,_0x5872ae=null,_0x31b23a=!0x1,_0x50d6c6){super(),this['documentId']=_0x1dd9e7,this['commentThreadId']=_0x360906,this['commentId']=_0x133709,this['content']=_0x59ec24,this['attributes']=_0x5872ae,this['isAttributesUpdated']=_0x31b23a,this['commentThread']=_0x50d6c6;}['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']?_0x47e51a['toJSON'](this['commentThread']):void 0x0};}static['fromJSON'](_0x523340){return new UpdateCommentMessage(_0x523340['documentId'],_0x523340['commentThreadId'],_0x523340['commentId'],_0x523340['content'],_0x523340['attributes']?JSON['parse'](_0x523340['attributes']):null,_0x523340['isAttributesUpdated'],_0x523340['commentThread']?_0x47e51a['fromJSON'](_0x523340['commentThread']):void 0x0);}}
23
+ import _0x1c25af from'./../../message.js';import _0x21b27f from'../descriptors/commentsthreaddescriptor.js';export default class UpdateCommentMessage extends _0x1c25af{['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(_0x36f4ed,_0x15ecf5,_0x36e908,_0x8cde6a,_0x52d439=null,_0x31f9e3=!0x1,_0x281b42){super(),this['documentId']=_0x36f4ed,this['commentThreadId']=_0x15ecf5,this['commentId']=_0x36e908,this['content']=_0x8cde6a,this['attributes']=_0x52d439,this['isAttributesUpdated']=_0x31f9e3,this['commentThread']=_0x281b42;}['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']?_0x21b27f['toJSON'](this['commentThread']):void 0x0};}static['fromJSON'](_0x47f065){return new UpdateCommentMessage(_0x47f065['documentId'],_0x47f065['commentThreadId'],_0x47f065['commentId'],_0x47f065['content'],_0x47f065['attributes']?JSON['parse'](_0x47f065['attributes']):null,_0x47f065['isAttributesUpdated'],_0x47f065['commentThread']?_0x21b27f['fromJSON'](_0x47f065['commentThread']):void 0x0);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x3a15b3 from'./../../message.js';export default class AddCommentResponse extends _0x3a15b3{['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(_0x89925b,_0x39fa26,_0x14ae26){super(),this['commentThreadId']=_0x89925b,this['commentId']=_0x39fa26,this['createdAt']=new Date(_0x14ae26);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'commentId':this['commentId'],'createdAt':this['createdAt']['toISOString']()};}static['fromJSON'](_0x17196e){return new AddCommentResponse(_0x17196e['commentThreadId'],_0x17196e['commentId'],_0x17196e['createdAt']);}}
23
+ import _0x4b378e from'./../../message.js';export default class AddCommentResponse extends _0x4b378e{['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(_0x1de28e,_0x6df8d3,_0xe6de35){super(),this['commentThreadId']=_0x1de28e,this['commentId']=_0x6df8d3,this['createdAt']=new Date(_0xe6de35);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'commentId':this['commentId'],'createdAt':this['createdAt']['toISOString']()};}static['fromJSON'](_0x209897){return new AddCommentResponse(_0x209897['commentThreadId'],_0x209897['commentId'],_0x209897['createdAt']);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x9e823 from'./../../../message.js';import _0x2b0665 from'../../descriptors/commentthreadaddedcomment.js';export default class AddCommentThreadResponse extends _0x9e823{['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(_0x549d2,_0x1f7ed8,_0xea8ee2=[]){super(),this['commentThreadId']=_0x549d2,this['comments']=_0xea8ee2,this['createdAt']=new Date(_0x1f7ed8);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'createdAt':this['createdAt']['toISOString'](),'comments':this['comments']['map'](_0x15e5ec=>_0x2b0665['toJSON'](_0x15e5ec))};}static['fromJSON'](_0x2ecc57){return new AddCommentThreadResponse(_0x2ecc57['commentThreadId'],_0x2ecc57['createdAt'],_0x2ecc57['comments']['map'](_0x7d35c1=>_0x2b0665['fromJSON'](_0x7d35c1)));}}
23
+ import _0x484012 from'./../../../message.js';import _0x3b1d56 from'../../descriptors/commentthreadaddedcomment.js';export default class AddCommentThreadResponse extends _0x484012{['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(_0x3d6828,_0x82203d,_0x1ad2df=[]){super(),this['commentThreadId']=_0x3d6828,this['comments']=_0x1ad2df,this['createdAt']=new Date(_0x82203d);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'createdAt':this['createdAt']['toISOString'](),'comments':this['comments']['map'](_0x38794c=>_0x3b1d56['toJSON'](_0x38794c))};}static['fromJSON'](_0x54664b){return new AddCommentThreadResponse(_0x54664b['commentThreadId'],_0x54664b['createdAt'],_0x54664b['comments']['map'](_0x1c021a=>_0x3b1d56['fromJSON'](_0x1c021a)));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x218f8e from'./../../../message.js';export default class ResolveCommentThreadResponse extends _0x218f8e{['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(_0xe7de23,_0x5871eb,_0x3ca5e2,_0x361f9e){super(),this['commentThreadId']=_0xe7de23,this['documentId']=_0x5871eb,this['resolvedBy']=_0x3ca5e2,this['resolvedAt']=new Date(_0x361f9e);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'documentId':this['documentId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']['toISOString']()};}static['fromJSON'](_0x13cde5){return new ResolveCommentThreadResponse(_0x13cde5['commentThreadId'],_0x13cde5['documentId'],_0x13cde5['resolvedBy'],_0x13cde5['resolvedAt']);}}
23
+ import _0x15291c from'./../../../message.js';export default class ResolveCommentThreadResponse extends _0x15291c{['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(_0x1aff84,_0xf6f19f,_0x23d9bc,_0x2043b8){super(),this['commentThreadId']=_0x1aff84,this['documentId']=_0xf6f19f,this['resolvedBy']=_0x23d9bc,this['resolvedAt']=new Date(_0x2043b8);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'documentId':this['documentId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']['toISOString']()};}static['fromJSON'](_0xcc62e1){return new ResolveCommentThreadResponse(_0xcc62e1['commentThreadId'],_0xcc62e1['documentId'],_0xcc62e1['resolvedBy'],_0xcc62e1['resolvedAt']);}}