polfan-server-js-client 0.2.84 → 0.2.86
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.
- package/.idea/workspace.xml +50 -37
- package/build/index.cjs.js +35 -29
- package/build/index.cjs.js.map +1 -1
- package/build/index.umd.js +1 -1
- package/build/index.umd.js.map +1 -1
- package/build/types/AbstractChatClient.d.ts +3 -1
- package/build/types/types/src/index.d.ts +4 -1
- package/build/types/types/src/schemes/BanObject.d.ts +4 -1
- package/build/types/types/src/schemes/RoomSummary.d.ts +1 -0
- package/build/types/types/src/schemes/UserInformation.d.ts +11 -0
- package/build/types/types/src/schemes/commands/Ban.d.ts +2 -0
- package/build/types/types/src/schemes/commands/GetBans.d.ts +2 -0
- package/build/types/types/src/schemes/commands/GetUserInfo.d.ts +3 -0
- package/build/types/types/src/schemes/commands/Unban.d.ts +1 -3
- package/build/types/types/src/schemes/events/Session.d.ts +1 -0
- package/build/types/types/src/schemes/events/UserInfo.d.ts +4 -0
- package/package.json +1 -1
- package/src/AbstractChatClient.ts +4 -0
- package/src/state-tracker/TopicHistoryWindow.ts +7 -3
- package/src/types/src/index.ts +7 -1
- package/src/types/src/schemes/BanObject.ts +5 -1
- package/src/types/src/schemes/RoomSummary.ts +1 -0
- package/src/types/src/schemes/UserInformation.ts +12 -0
- package/src/types/src/schemes/commands/Ban.ts +2 -0
- package/src/types/src/schemes/commands/GetBans.ts +2 -0
- package/src/types/src/schemes/commands/GetUserInfo.ts +3 -0
- package/src/types/src/schemes/commands/Unban.ts +1 -4
- package/src/types/src/schemes/events/Session.ts +1 -0
- package/src/types/src/schemes/events/UserInfo.ts +5 -0
package/.idea/workspace.xml
CHANGED
|
@@ -4,22 +4,22 @@
|
|
|
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="
|
|
8
|
-
<change afterPath="$PROJECT_DIR$/
|
|
9
|
-
<change
|
|
10
|
-
<change
|
|
11
|
-
<change beforePath="$PROJECT_DIR$/build/
|
|
12
|
-
<change beforePath="$PROJECT_DIR$/build/
|
|
13
|
-
<change beforePath="$PROJECT_DIR$/
|
|
14
|
-
<change beforePath="$PROJECT_DIR$/
|
|
15
|
-
<change beforePath="$PROJECT_DIR$/
|
|
16
|
-
<change beforePath="$PROJECT_DIR$/
|
|
17
|
-
<change beforePath="$PROJECT_DIR$/
|
|
18
|
-
<change beforePath="$PROJECT_DIR$/src/
|
|
19
|
-
<change beforePath="$PROJECT_DIR$/src/
|
|
20
|
-
<change beforePath="$PROJECT_DIR$/src/
|
|
21
|
-
<change beforePath="$PROJECT_DIR$/src/
|
|
22
|
-
<change beforePath="$PROJECT_DIR$/src/
|
|
7
|
+
<list default="true" id="831dae43-0da1-47fd-a5f7-33dd5eec2992" name="Changes" comment="Fix emitting event with deleted topics">
|
|
8
|
+
<change afterPath="$PROJECT_DIR$/src/types/src/schemes/UserInformation.ts" afterDir="false" />
|
|
9
|
+
<change afterPath="$PROJECT_DIR$/src/types/src/schemes/commands/GetUserInfo.ts" afterDir="false" />
|
|
10
|
+
<change afterPath="$PROJECT_DIR$/src/types/src/schemes/events/UserInfo.ts" afterDir="false" />
|
|
11
|
+
<change beforePath="$PROJECT_DIR$/build/index.cjs.js.map" beforeDir="false" afterPath="$PROJECT_DIR$/build/index.cjs.js.map" 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$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
|
|
14
|
+
<change beforePath="$PROJECT_DIR$/src/AbstractChatClient.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/AbstractChatClient.ts" afterDir="false" />
|
|
15
|
+
<change beforePath="$PROJECT_DIR$/src/types" beforeDir="false" afterPath="$PROJECT_DIR$/src/types" afterDir="false" />
|
|
16
|
+
<change beforePath="$PROJECT_DIR$/src/types/src/index.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/types/src/index.ts" afterDir="false" />
|
|
17
|
+
<change beforePath="$PROJECT_DIR$/src/types/src/schemes/BanObject.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/types/src/schemes/BanObject.ts" afterDir="false" />
|
|
18
|
+
<change beforePath="$PROJECT_DIR$/src/types/src/schemes/RoomSummary.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/types/src/schemes/RoomSummary.ts" afterDir="false" />
|
|
19
|
+
<change beforePath="$PROJECT_DIR$/src/types/src/schemes/commands/Ban.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/types/src/schemes/commands/Ban.ts" afterDir="false" />
|
|
20
|
+
<change beforePath="$PROJECT_DIR$/src/types/src/schemes/commands/GetBans.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/types/src/schemes/commands/GetBans.ts" afterDir="false" />
|
|
21
|
+
<change beforePath="$PROJECT_DIR$/src/types/src/schemes/commands/Unban.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/types/src/schemes/commands/Unban.ts" afterDir="false" />
|
|
22
|
+
<change beforePath="$PROJECT_DIR$/src/types/src/schemes/events/Session.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/types/src/schemes/events/Session.ts" afterDir="false" />
|
|
23
23
|
</list>
|
|
24
24
|
<option name="SHOW_DIALOG" value="false" />
|
|
25
25
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
@@ -53,6 +53,10 @@
|
|
|
53
53
|
"accountId": "3584fcfe-fe67-4c7c-94f9-c35acfe7b7c6"
|
|
54
54
|
}
|
|
55
55
|
}</component>
|
|
56
|
+
<component name="McpProjectServerCommands">
|
|
57
|
+
<commands />
|
|
58
|
+
<urls />
|
|
59
|
+
</component>
|
|
56
60
|
<component name="PhpWorkspaceProjectConfiguration" interpreter_name="C:\php\php.exe" />
|
|
57
61
|
<component name="ProblemsViewState">
|
|
58
62
|
<option name="selectedTabId" value="DEPENDENCY_CHECKER_PROBLEMS_TAB" />
|
|
@@ -67,6 +71,7 @@
|
|
|
67
71
|
</component>
|
|
68
72
|
<component name="PropertiesComponent"><![CDATA[{
|
|
69
73
|
"keyToString": {
|
|
74
|
+
"RunOnceActivity.MCP Project settings loaded": "true",
|
|
70
75
|
"RunOnceActivity.ShowReadmeOnStart": "true",
|
|
71
76
|
"RunOnceActivity.TerminalTabsStorage.copyFrom.TerminalArrangementManager": "true",
|
|
72
77
|
"RunOnceActivity.TerminalTabsStorage.copyFrom.TerminalArrangementManager.252": "true",
|
|
@@ -187,23 +192,15 @@
|
|
|
187
192
|
<workItem from="1769218166609" duration="940000" />
|
|
188
193
|
<workItem from="1769411030191" duration="14000" />
|
|
189
194
|
<workItem from="1769767524856" duration="3188000" />
|
|
190
|
-
<workItem from="1769858204333" duration="
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
<
|
|
194
|
-
<
|
|
195
|
-
<
|
|
196
|
-
<
|
|
197
|
-
<
|
|
198
|
-
<
|
|
199
|
-
</task>
|
|
200
|
-
<task id="LOCAL-00035" summary="New message type">
|
|
201
|
-
<option name="closed" value="true" />
|
|
202
|
-
<created>1751159850812</created>
|
|
203
|
-
<option name="number" value="00035" />
|
|
204
|
-
<option name="presentableId" value="LOCAL-00035" />
|
|
205
|
-
<option name="project" value="LOCAL" />
|
|
206
|
-
<updated>1751159850812</updated>
|
|
195
|
+
<workItem from="1769858204333" duration="26079000" />
|
|
196
|
+
<workItem from="1770281689400" duration="1213000" />
|
|
197
|
+
<workItem from="1770574887318" duration="737000" />
|
|
198
|
+
<workItem from="1770576059797" duration="1842000" />
|
|
199
|
+
<workItem from="1771241038327" duration="594000" />
|
|
200
|
+
<workItem from="1774871561103" duration="4164000" />
|
|
201
|
+
<workItem from="1775031025390" duration="593000" />
|
|
202
|
+
<workItem from="1775641624063" duration="1179000" />
|
|
203
|
+
<workItem from="1776327180094" duration="2940000" />
|
|
207
204
|
</task>
|
|
208
205
|
<task id="LOCAL-00036" summary="New message type">
|
|
209
206
|
<option name="closed" value="true" />
|
|
@@ -581,7 +578,23 @@
|
|
|
581
578
|
<option name="project" value="LOCAL" />
|
|
582
579
|
<updated>1769881009373</updated>
|
|
583
580
|
</task>
|
|
584
|
-
<
|
|
581
|
+
<task id="LOCAL-00083" summary="Delete redacted messages, improve collections, add tests">
|
|
582
|
+
<option name="closed" value="true" />
|
|
583
|
+
<created>1769890333390</created>
|
|
584
|
+
<option name="number" value="00083" />
|
|
585
|
+
<option name="presentableId" value="LOCAL-00083" />
|
|
586
|
+
<option name="project" value="LOCAL" />
|
|
587
|
+
<updated>1769890333390</updated>
|
|
588
|
+
</task>
|
|
589
|
+
<task id="LOCAL-00084" summary="Fix emitting event with deleted topics">
|
|
590
|
+
<option name="closed" value="true" />
|
|
591
|
+
<created>1769894114638</created>
|
|
592
|
+
<option name="number" value="00084" />
|
|
593
|
+
<option name="presentableId" value="LOCAL-00084" />
|
|
594
|
+
<option name="project" value="LOCAL" />
|
|
595
|
+
<updated>1769894114639</updated>
|
|
596
|
+
</task>
|
|
597
|
+
<option name="localTasksCounter" value="85" />
|
|
585
598
|
<servers />
|
|
586
599
|
</component>
|
|
587
600
|
<component name="TypeScriptGeneratedFilesManager">
|
|
@@ -599,8 +612,6 @@
|
|
|
599
612
|
</option>
|
|
600
613
|
</component>
|
|
601
614
|
<component name="VcsManagerConfiguration">
|
|
602
|
-
<MESSAGE value="RoomSummaryUpdated event support" />
|
|
603
|
-
<MESSAGE value="Ephemeral room history support" />
|
|
604
615
|
<MESSAGE value="Protocol version support" />
|
|
605
616
|
<MESSAGE value="Update room on recipient user change" />
|
|
606
617
|
<MESSAGE value="Fix websocket state error handling" />
|
|
@@ -624,7 +635,9 @@
|
|
|
624
635
|
<MESSAGE value="Added new permission" />
|
|
625
636
|
<MESSAGE value="WIP: delete redacted messages" />
|
|
626
637
|
<MESSAGE value="Improve EventTarget typings" />
|
|
627
|
-
<
|
|
638
|
+
<MESSAGE value="Delete redacted messages, improve collections, add tests" />
|
|
639
|
+
<MESSAGE value="Fix emitting event with deleted topics" />
|
|
640
|
+
<option name="LAST_COMMIT_MESSAGE" value="Fix emitting event with deleted topics" />
|
|
628
641
|
</component>
|
|
629
642
|
<component name="XSLT-Support.FileAssociations.UIState">
|
|
630
643
|
<expand />
|
package/build/index.cjs.js
CHANGED
|
@@ -1131,6 +1131,7 @@ var TopicHistoryWindow = /*#__PURE__*/function (_TraversableRemoteCol) {
|
|
|
1131
1131
|
key: "handleMessagesRedacted",
|
|
1132
1132
|
value: function () {
|
|
1133
1133
|
var _handleMessagesRedacted = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee0(ev) {
|
|
1134
|
+
var refTopicIds;
|
|
1134
1135
|
return _regenerator().w(function (_context0) {
|
|
1135
1136
|
while (1) switch (_context0.n) {
|
|
1136
1137
|
case 0:
|
|
@@ -1140,10 +1141,11 @@ var TopicHistoryWindow = /*#__PURE__*/function (_TraversableRemoteCol) {
|
|
|
1140
1141
|
}
|
|
1141
1142
|
return _context0.a(2);
|
|
1142
1143
|
case 1:
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1144
|
+
refTopicIds = this.items.filter(function (msg) {
|
|
1145
|
+
return msg.topicRef && ev.ids.includes(msg.id);
|
|
1146
|
+
}).map(function (msg) {
|
|
1147
|
+
return msg.topicRef;
|
|
1148
|
+
});
|
|
1147
1149
|
this["delete"].apply(this, TopicHistoryWindow_toConsumableArray(ev.ids));
|
|
1148
1150
|
if (!(this.length === 0)) {
|
|
1149
1151
|
_context0.n = 2;
|
|
@@ -1152,6 +1154,10 @@ var TopicHistoryWindow = /*#__PURE__*/function (_TraversableRemoteCol) {
|
|
|
1152
1154
|
_context0.n = 2;
|
|
1153
1155
|
return this.resetToLatest();
|
|
1154
1156
|
case 2:
|
|
1157
|
+
if (refTopicIds.length > 0) {
|
|
1158
|
+
this.eventTarget.emit('reftopicsdeleted', refTopicIds);
|
|
1159
|
+
}
|
|
1160
|
+
case 3:
|
|
1155
1161
|
return _context0.a(2);
|
|
1156
1162
|
}
|
|
1157
1163
|
}, _callee0, this);
|
|
@@ -2728,8 +2734,8 @@ var SpacesManager = /*#__PURE__*/function () {
|
|
|
2728
2734
|
});
|
|
2729
2735
|
}
|
|
2730
2736
|
|
|
2731
|
-
/**
|
|
2732
|
-
* Get collection of all the spaces you are in.
|
|
2737
|
+
/**
|
|
2738
|
+
* Get collection of all the spaces you are in.
|
|
2733
2739
|
*/
|
|
2734
2740
|
return SpacesManager_createClass(SpacesManager, [{
|
|
2735
2741
|
key: "get",
|
|
@@ -2750,8 +2756,8 @@ var SpacesManager = /*#__PURE__*/function () {
|
|
|
2750
2756
|
}
|
|
2751
2757
|
return get;
|
|
2752
2758
|
}()
|
|
2753
|
-
/**
|
|
2754
|
-
* Get collection of space roles.
|
|
2759
|
+
/**
|
|
2760
|
+
* Get collection of space roles.
|
|
2755
2761
|
*/
|
|
2756
2762
|
)
|
|
2757
2763
|
}, {
|
|
@@ -2773,8 +2779,8 @@ var SpacesManager = /*#__PURE__*/function () {
|
|
|
2773
2779
|
}
|
|
2774
2780
|
return getRoles;
|
|
2775
2781
|
}()
|
|
2776
|
-
/**
|
|
2777
|
-
* Get collection of the all available rooms inside given space.
|
|
2782
|
+
/**
|
|
2783
|
+
* Get collection of the all available rooms inside given space.
|
|
2778
2784
|
*/
|
|
2779
2785
|
)
|
|
2780
2786
|
}, {
|
|
@@ -2822,8 +2828,8 @@ var SpacesManager = /*#__PURE__*/function () {
|
|
|
2822
2828
|
}
|
|
2823
2829
|
return getRooms;
|
|
2824
2830
|
}()
|
|
2825
|
-
/**
|
|
2826
|
-
* Get collection of space members.
|
|
2831
|
+
/**
|
|
2832
|
+
* Get collection of space members.
|
|
2827
2833
|
*/
|
|
2828
2834
|
)
|
|
2829
2835
|
}, {
|
|
@@ -2871,8 +2877,8 @@ var SpacesManager = /*#__PURE__*/function () {
|
|
|
2871
2877
|
}
|
|
2872
2878
|
return getMembers;
|
|
2873
2879
|
}()
|
|
2874
|
-
/**
|
|
2875
|
-
* Get a space member representing the current user.
|
|
2880
|
+
/**
|
|
2881
|
+
* Get a space member representing the current user.
|
|
2876
2882
|
*/
|
|
2877
2883
|
)
|
|
2878
2884
|
}, {
|
|
@@ -3064,9 +3070,9 @@ var SpacesManager = /*#__PURE__*/function () {
|
|
|
3064
3070
|
case 0:
|
|
3065
3071
|
spaceId = this.roomIdToSpaceId.get(ev.summary.id);
|
|
3066
3072
|
summariesPromise = this.roomsPromises.get(spaceId);
|
|
3067
|
-
/**
|
|
3068
|
-
* Update summary only if the list was already loaded.
|
|
3069
|
-
* RoomSummaryUpdated event has a partial summary, so we need to update the existing summary by merging it.
|
|
3073
|
+
/**
|
|
3074
|
+
* Update summary only if the list was already loaded.
|
|
3075
|
+
* RoomSummaryUpdated event has a partial summary, so we need to update the existing summary by merging it.
|
|
3070
3076
|
*/
|
|
3071
3077
|
if (!(spaceId && summariesPromise)) {
|
|
3072
3078
|
_context9.n = 2;
|
|
@@ -4242,28 +4248,28 @@ var ChatStateTracker = /*#__PURE__*/function () {
|
|
|
4242
4248
|
var _this = this;
|
|
4243
4249
|
ChatStateTracker_classCallCheck(this, ChatStateTracker);
|
|
4244
4250
|
ChatStateTracker_defineProperty(this, "client", void 0);
|
|
4245
|
-
/**
|
|
4246
|
-
* State of your permissions.
|
|
4251
|
+
/**
|
|
4252
|
+
* State of your permissions.
|
|
4247
4253
|
*/
|
|
4248
4254
|
ChatStateTracker_defineProperty(this, "permissions", void 0);
|
|
4249
|
-
/**
|
|
4250
|
-
* State of the rooms you are in.
|
|
4255
|
+
/**
|
|
4256
|
+
* State of the rooms you are in.
|
|
4251
4257
|
*/
|
|
4252
4258
|
ChatStateTracker_defineProperty(this, "rooms", void 0);
|
|
4253
|
-
/**
|
|
4254
|
-
* State of the spaces you are in.
|
|
4259
|
+
/**
|
|
4260
|
+
* State of the spaces you are in.
|
|
4255
4261
|
*/
|
|
4256
4262
|
ChatStateTracker_defineProperty(this, "spaces", void 0);
|
|
4257
|
-
/**
|
|
4258
|
-
* State of the emoticons (global and space-related).
|
|
4263
|
+
/**
|
|
4264
|
+
* State of the emoticons (global and space-related).
|
|
4259
4265
|
*/
|
|
4260
4266
|
ChatStateTracker_defineProperty(this, "emoticons", void 0);
|
|
4261
|
-
/**
|
|
4262
|
-
* Users related state.
|
|
4267
|
+
/**
|
|
4268
|
+
* Users related state.
|
|
4263
4269
|
*/
|
|
4264
4270
|
ChatStateTracker_defineProperty(this, "users", void 0);
|
|
4265
|
-
/**
|
|
4266
|
-
* State of relationships with other users.
|
|
4271
|
+
/**
|
|
4272
|
+
* State of relationships with other users.
|
|
4267
4273
|
*/
|
|
4268
4274
|
ChatStateTracker_defineProperty(this, "relationships", void 0);
|
|
4269
4275
|
ChatStateTracker_defineProperty(this, "_me", null);
|