mezon-js 2.7.86 → 2.7.88
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/mezon-js.cjs.js +4 -7
- package/dist/mezon-js.esm.mjs +4 -7
- package/dist/socket.d.ts +4 -4
- package/package.json +1 -1
- package/socket.ts +6 -9
package/dist/mezon-js.cjs.js
CHANGED
@@ -4862,25 +4862,22 @@ var _DefaultSocket = class _DefaultSocket {
|
|
4862
4862
|
return response.clan_join;
|
4863
4863
|
});
|
4864
4864
|
}
|
4865
|
-
joinChat(clan_id, channel_id,
|
4865
|
+
joinChat(clan_id, channel_id, channel_type) {
|
4866
4866
|
return __async(this, null, function* () {
|
4867
4867
|
const response = yield this.send(
|
4868
4868
|
{
|
4869
4869
|
channel_join: {
|
4870
4870
|
clan_id,
|
4871
4871
|
channel_id,
|
4872
|
-
|
4873
|
-
type,
|
4874
|
-
persistence,
|
4875
|
-
hidden
|
4872
|
+
channel_type
|
4876
4873
|
}
|
4877
4874
|
}
|
4878
4875
|
);
|
4879
4876
|
return response.channel;
|
4880
4877
|
});
|
4881
4878
|
}
|
4882
|
-
leaveChat(clan_id, channel_id,
|
4883
|
-
return this.send({ channel_leave: { clan_id, channel_id,
|
4879
|
+
leaveChat(clan_id, channel_id, channel_type) {
|
4880
|
+
return this.send({ channel_leave: { clan_id, channel_id, channel_type } });
|
4884
4881
|
}
|
4885
4882
|
removeChatMessage(clan_id, channel_id, mode, message_id) {
|
4886
4883
|
return __async(this, null, function* () {
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -4833,25 +4833,22 @@ var _DefaultSocket = class _DefaultSocket {
|
|
4833
4833
|
return response.clan_join;
|
4834
4834
|
});
|
4835
4835
|
}
|
4836
|
-
joinChat(clan_id, channel_id,
|
4836
|
+
joinChat(clan_id, channel_id, channel_type) {
|
4837
4837
|
return __async(this, null, function* () {
|
4838
4838
|
const response = yield this.send(
|
4839
4839
|
{
|
4840
4840
|
channel_join: {
|
4841
4841
|
clan_id,
|
4842
4842
|
channel_id,
|
4843
|
-
|
4844
|
-
type,
|
4845
|
-
persistence,
|
4846
|
-
hidden
|
4843
|
+
channel_type
|
4847
4844
|
}
|
4848
4845
|
}
|
4849
4846
|
);
|
4850
4847
|
return response.channel;
|
4851
4848
|
});
|
4852
4849
|
}
|
4853
|
-
leaveChat(clan_id, channel_id,
|
4854
|
-
return this.send({ channel_leave: { clan_id, channel_id,
|
4850
|
+
leaveChat(clan_id, channel_id, channel_type) {
|
4851
|
+
return this.send({ channel_leave: { clan_id, channel_id, channel_type } });
|
4855
4852
|
}
|
4856
4853
|
removeChatMessage(clan_id, channel_id, mode, message_id) {
|
4857
4854
|
return __async(this, null, function* () {
|
package/dist/socket.d.ts
CHANGED
@@ -413,9 +413,9 @@ export interface Socket {
|
|
413
413
|
/** Join clan chat */
|
414
414
|
joinClanChat(clan_id: string): Promise<ClanJoin>;
|
415
415
|
/** Join a chat channel on the server. */
|
416
|
-
joinChat(clan_id: string, channel_id: string,
|
416
|
+
joinChat(clan_id: string, channel_id: string, channel_type: number): Promise<Channel>;
|
417
417
|
/** Leave a chat channel on the server. */
|
418
|
-
leaveChat(clan_id: string, channel_id: string,
|
418
|
+
leaveChat(clan_id: string, channel_id: string, channel_type: number): Promise<void>;
|
419
419
|
/** Remove a chat message from a chat channel on the server. */
|
420
420
|
removeChatMessage(clan_id: string, channel_id: string, mode: number, message_id: string): Promise<ChannelMessageAck>;
|
421
421
|
/** Execute an RPC function to the server. */
|
@@ -536,8 +536,8 @@ export declare class DefaultSocket implements Socket {
|
|
536
536
|
send(message: ChannelJoin | ChannelLeave | ChannelMessageSend | ChannelMessageUpdate | CustomStatusEvent | ChannelMessageRemove | MessageTypingEvent | LastSeenMessageEvent | Rpc | StatusFollow | StatusUnfollow | StatusUpdate | Ping, sendTimeout?: number): Promise<any>;
|
537
537
|
followUsers(userIds: string[]): Promise<Status>;
|
538
538
|
joinClanChat(clan_id: string): Promise<ClanJoin>;
|
539
|
-
joinChat(clan_id: string, channel_id: string,
|
540
|
-
leaveChat(clan_id: string, channel_id: string,
|
539
|
+
joinChat(clan_id: string, channel_id: string, channel_type: number): Promise<Channel>;
|
540
|
+
leaveChat(clan_id: string, channel_id: string, channel_type: number): Promise<void>;
|
541
541
|
removeChatMessage(clan_id: string, channel_id: string, mode: number, message_id: string): Promise<ChannelMessageAck>;
|
542
542
|
removePartyMember(party_id: string, member: Presence): Promise<void>;
|
543
543
|
rpc(id?: string, payload?: string, http_key?: string): Promise<ApiRpc>;
|
package/package.json
CHANGED
package/socket.ts
CHANGED
@@ -572,10 +572,10 @@ export interface Socket {
|
|
572
572
|
joinClanChat(clan_id: string) : Promise<ClanJoin>;
|
573
573
|
|
574
574
|
/** Join a chat channel on the server. */
|
575
|
-
joinChat(clan_id: string, channel_id: string,
|
575
|
+
joinChat(clan_id: string, channel_id: string, channel_type: number) : Promise<Channel>;
|
576
576
|
|
577
577
|
/** Leave a chat channel on the server. */
|
578
|
-
leaveChat(clan_id: string, channel_id: string,
|
578
|
+
leaveChat(clan_id: string, channel_id: string, channel_type: number) : Promise<void>;
|
579
579
|
|
580
580
|
/** Remove a chat message from a chat channel on the server. */
|
581
581
|
removeChatMessage(clan_id: string, channel_id: string, mode: number, message_id: string) : Promise<ChannelMessageAck>;
|
@@ -1057,16 +1057,13 @@ export class DefaultSocket implements Socket {
|
|
1057
1057
|
return response.clan_join;
|
1058
1058
|
}
|
1059
1059
|
|
1060
|
-
async joinChat(clan_id: string, channel_id: string,
|
1060
|
+
async joinChat(clan_id: string, channel_id: string, channel_type: number): Promise<Channel> {
|
1061
1061
|
|
1062
1062
|
const response = await this.send({
|
1063
1063
|
channel_join: {
|
1064
1064
|
clan_id: clan_id,
|
1065
1065
|
channel_id: channel_id,
|
1066
|
-
|
1067
|
-
type: type,
|
1068
|
-
persistence: persistence,
|
1069
|
-
hidden: hidden
|
1066
|
+
channel_type: channel_type,
|
1070
1067
|
}
|
1071
1068
|
}
|
1072
1069
|
);
|
@@ -1074,8 +1071,8 @@ export class DefaultSocket implements Socket {
|
|
1074
1071
|
return response.channel;
|
1075
1072
|
}
|
1076
1073
|
|
1077
|
-
leaveChat(clan_id: string, channel_id: string,
|
1078
|
-
return this.send({channel_leave: {clan_id: clan_id, channel_id: channel_id,
|
1074
|
+
leaveChat(clan_id: string, channel_id: string, channel_type: number): Promise<void> {
|
1075
|
+
return this.send({channel_leave: {clan_id: clan_id, channel_id: channel_id, channel_type: channel_type}});
|
1079
1076
|
}
|
1080
1077
|
|
1081
1078
|
async removeChatMessage(clan_id: string, channel_id: string, mode: number, message_id: string): Promise<ChannelMessageAck> {
|