polfan-server-js-client 0.2.97 → 0.2.98

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.
@@ -4,18 +4,9 @@
4
4
  <option name="autoReloadType" value="SELECTIVE" />
5
5
  </component>
6
6
  <component name="ChangeListManager">
7
- <list default="true" id="831dae43-0da1-47fd-a5f7-33dd5eec2992" name="Changes" comment="Optimize and fix followed topic caching and summarizing">
8
- <change afterPath="$PROJECT_DIR$/src/state-tracker/FollowedTopicsManager.ts" afterDir="false" />
9
- <change beforePath="$PROJECT_DIR$/build/index.cjs.js" beforeDir="false" afterPath="$PROJECT_DIR$/build/index.cjs.js" afterDir="false" />
10
- <change beforePath="$PROJECT_DIR$/build/index.cjs.js.map" beforeDir="false" afterPath="$PROJECT_DIR$/build/index.cjs.js.map" afterDir="false" />
11
- <change beforePath="$PROJECT_DIR$/build/index.umd.js" beforeDir="false" afterPath="$PROJECT_DIR$/build/index.umd.js" afterDir="false" />
12
- <change beforePath="$PROJECT_DIR$/build/index.umd.js.map" beforeDir="false" afterPath="$PROJECT_DIR$/build/index.umd.js.map" afterDir="false" />
13
- <change beforePath="$PROJECT_DIR$/build/types/state-tracker/MessagesManager.d.ts" beforeDir="false" afterPath="$PROJECT_DIR$/build/types/state-tracker/MessagesManager.d.ts" afterDir="false" />
14
- <change beforePath="$PROJECT_DIR$/build/types/state-tracker/RoomsManager.d.ts" beforeDir="false" afterPath="$PROJECT_DIR$/build/types/state-tracker/RoomsManager.d.ts" afterDir="false" />
7
+ <list default="true" id="831dae43-0da1-47fd-a5f7-33dd5eec2992" name="Changes" comment="Introduce FollowedTopicsManager">
15
8
  <change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
16
- <change beforePath="$PROJECT_DIR$/src/IndexedObjectCollection.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/IndexedObjectCollection.ts" afterDir="false" />
17
- <change beforePath="$PROJECT_DIR$/src/state-tracker/MessagesManager.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/state-tracker/MessagesManager.ts" afterDir="false" />
18
- <change beforePath="$PROJECT_DIR$/src/state-tracker/RoomsManager.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/state-tracker/RoomsManager.ts" afterDir="false" />
9
+ <change beforePath="$PROJECT_DIR$/src/state-tracker/FollowedTopicsManager.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/state-tracker/FollowedTopicsManager.ts" afterDir="false" />
19
10
  </list>
20
11
  <option name="SHOW_DIALOG" value="false" />
21
12
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -217,23 +208,7 @@
217
208
  <workItem from="1782579738743" duration="1279000" />
218
209
  <workItem from="1782664203095" duration="5539000" />
219
210
  <workItem from="1782909199211" duration="2404000" />
220
- <workItem from="1783939298935" duration="18246000" />
221
- </task>
222
- <task id="LOCAL-00047" summary="Fix for incorrectly emitted RoomUpdated event">
223
- <option name="closed" value="true" />
224
- <created>1753379731857</created>
225
- <option name="number" value="00047" />
226
- <option name="presentableId" value="LOCAL-00047" />
227
- <option name="project" value="LOCAL" />
228
- <updated>1753379731857</updated>
229
- </task>
230
- <task id="LOCAL-00048" summary="Relationships support">
231
- <option name="closed" value="true" />
232
- <created>1754149839341</created>
233
- <option name="number" value="00048" />
234
- <option name="presentableId" value="LOCAL-00048" />
235
- <option name="project" value="LOCAL" />
236
- <updated>1754149839341</updated>
211
+ <workItem from="1783939298935" duration="19320000" />
237
212
  </task>
238
213
  <task id="LOCAL-00049" summary="Update a relationship scheme">
239
214
  <option name="closed" value="true" />
@@ -611,7 +586,23 @@
611
586
  <option name="project" value="LOCAL" />
612
587
  <updated>1784021568203</updated>
613
588
  </task>
614
- <option name="localTasksCounter" value="96" />
589
+ <task id="LOCAL-00096" summary="Introduce FollowedTopicsManager">
590
+ <option name="closed" value="true" />
591
+ <created>1784050045301</created>
592
+ <option name="number" value="00096" />
593
+ <option name="presentableId" value="LOCAL-00096" />
594
+ <option name="project" value="LOCAL" />
595
+ <updated>1784050045301</updated>
596
+ </task>
597
+ <task id="LOCAL-00097" summary="Introduce FollowedTopicsManager">
598
+ <option name="closed" value="true" />
599
+ <created>1784050072386</created>
600
+ <option name="number" value="00097" />
601
+ <option name="presentableId" value="LOCAL-00097" />
602
+ <option name="project" value="LOCAL" />
603
+ <updated>1784050072386</updated>
604
+ </task>
605
+ <option name="localTasksCounter" value="98" />
615
606
  <servers />
616
607
  </component>
617
608
  <component name="TypeScriptGeneratedFilesManager">
@@ -656,7 +647,6 @@
656
647
  </option>
657
648
  </component>
658
649
  <component name="VcsManagerConfiguration">
659
- <MESSAGE value="Bump version" />
660
650
  <MESSAGE value="Fix permission check (caching overwrites)" />
661
651
  <MESSAGE value="Remove AuthClient, export AbstractRestClient" />
662
652
  <MESSAGE value="Add possibility to pass custom headers in AbstractRestClient" />
@@ -681,7 +671,8 @@
681
671
  <MESSAGE value="Adjust to followed topics changes in protocol" />
682
672
  <MESSAGE value="SetSessionData command support" />
683
673
  <MESSAGE value="Optimize and fix followed topic caching and summarizing" />
684
- <option name="LAST_COMMIT_MESSAGE" value="Optimize and fix followed topic caching and summarizing" />
674
+ <MESSAGE value="Introduce FollowedTopicsManager" />
675
+ <option name="LAST_COMMIT_MESSAGE" value="Introduce FollowedTopicsManager" />
685
676
  </component>
686
677
  <component name="XSLT-Support.FileAssociations.UIState">
687
678
  <expand />
@@ -1924,13 +1924,13 @@ var FollowedTopicsManager = /*#__PURE__*/function (_EventTarget) {
1924
1924
  /**
1925
1925
  * Cache followed topics for all joined rooms in a space and fetch them in bulk if necessary.
1926
1926
  * Then you can get them using getRoomFollowedTopics().
1927
- * @see getRoomFollowedTopics
1927
+ * @see getForRoom
1928
1928
  */
1929
1929
  FollowedTopicsManager_inherits(FollowedTopicsManager, _EventTarget);
1930
1930
  return FollowedTopicsManager_createClass(FollowedTopicsManager, [{
1931
- key: "cacheSpaceFollowedTopics",
1931
+ key: "cacheForSpace",
1932
1932
  value: (function () {
1933
- var _cacheSpaceFollowedTopics = FollowedTopicsManager_asyncToGenerator(/*#__PURE__*/FollowedTopicsManager_regenerator().m(function _callee2(spaceId) {
1933
+ var _cacheForSpace = FollowedTopicsManager_asyncToGenerator(/*#__PURE__*/FollowedTopicsManager_regenerator().m(function _callee2(spaceId) {
1934
1934
  var _this2 = this;
1935
1935
  var rooms, roomIds, isAlreadyCached, spaceRegistryKey, _t;
1936
1936
  return FollowedTopicsManager_regenerator().w(function (_context2) {
@@ -2013,10 +2013,10 @@ var FollowedTopicsManager = /*#__PURE__*/function (_EventTarget) {
2013
2013
  }
2014
2014
  }, _callee2, this);
2015
2015
  }));
2016
- function cacheSpaceFollowedTopics(_x) {
2017
- return _cacheSpaceFollowedTopics.apply(this, arguments);
2016
+ function cacheForSpace(_x) {
2017
+ return _cacheForSpace.apply(this, arguments);
2018
2018
  }
2019
- return cacheSpaceFollowedTopics;
2019
+ return cacheForSpace;
2020
2020
  }()
2021
2021
  /**
2022
2022
  * Get followed topics for the given room.
@@ -2024,9 +2024,9 @@ var FollowedTopicsManager = /*#__PURE__*/function (_EventTarget) {
2024
2024
  */
2025
2025
  )
2026
2026
  }, {
2027
- key: "getRoomFollowedTopics",
2027
+ key: "getForRoom",
2028
2028
  value: (function () {
2029
- var _getRoomFollowedTopics = FollowedTopicsManager_asyncToGenerator(/*#__PURE__*/FollowedTopicsManager_regenerator().m(function _callee4(roomId) {
2029
+ var _getForRoom = FollowedTopicsManager_asyncToGenerator(/*#__PURE__*/FollowedTopicsManager_regenerator().m(function _callee4(roomId) {
2030
2030
  var _this3 = this;
2031
2031
  return FollowedTopicsManager_regenerator().w(function (_context4) {
2032
2032
  while (1) switch (_context4.n) {
@@ -2078,10 +2078,10 @@ var FollowedTopicsManager = /*#__PURE__*/function (_EventTarget) {
2078
2078
  }
2079
2079
  }, _callee4, this);
2080
2080
  }));
2081
- function getRoomFollowedTopics(_x2) {
2082
- return _getRoomFollowedTopics.apply(this, arguments);
2081
+ function getForRoom(_x2) {
2082
+ return _getForRoom.apply(this, arguments);
2083
2083
  }
2084
- return getRoomFollowedTopics;
2084
+ return getForRoom;
2085
2085
  }()
2086
2086
  /**
2087
2087
  * Batch acknowledge all messages for given room.
@@ -2096,7 +2096,7 @@ var FollowedTopicsManager = /*#__PURE__*/function (_EventTarget) {
2096
2096
  while (1) switch (_context5.p = _context5.n) {
2097
2097
  case 0:
2098
2098
  _context5.n = 1;
2099
- return this.getRoomFollowedTopics(roomId);
2099
+ return this.getForRoom(roomId);
2100
2100
  case 1:
2101
2101
  collection = _context5.v;
2102
2102
  if (collection) {
@@ -2201,7 +2201,7 @@ var FollowedTopicsManager = /*#__PURE__*/function (_EventTarget) {
2201
2201
  break;
2202
2202
  }
2203
2203
  _context6.n = 6;
2204
- return this.cacheSpaceFollowedTopics(location.spaceId);
2204
+ return this.cacheForSpace(location.spaceId);
2205
2205
  case 6:
2206
2206
  roomIds = rooms.findBy('spaceId', location.spaceId).items.map(function (r) {
2207
2207
  return r.id;
@@ -2210,7 +2210,7 @@ var FollowedTopicsManager = /*#__PURE__*/function (_EventTarget) {
2210
2210
  break;
2211
2211
  case 7:
2212
2212
  _context6.n = 8;
2213
- return this.cacheSpaceFollowedTopics(null);
2213
+ return this.cacheForSpace(null);
2214
2214
  case 8:
2215
2215
  roomIds = rooms.items.filter(function (r) {
2216
2216
  return !r.spaceId;
@@ -2230,7 +2230,7 @@ var FollowedTopicsManager = /*#__PURE__*/function (_EventTarget) {
2230
2230
  }
2231
2231
  roomId = _step2.value;
2232
2232
  _context6.n = 12;
2233
- return this.getRoomFollowedTopics(roomId);
2233
+ return this.getForRoom(roomId);
2234
2234
  case 12:
2235
2235
  collection = _context6.v;
2236
2236
  if (collection) {