mezon-js 2.12.62 → 2.12.64
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/api.gen.ts +2 -0
- package/dist/api.gen.d.ts +1 -0
- package/dist/mezon-js.cjs.js +7 -0
- package/dist/mezon-js.esm.mjs +7 -0
- package/dist/socket.d.ts +5 -0
- package/package.json +1 -1
- package/socket.ts +15 -0
package/api.gen.ts
CHANGED
package/dist/api.gen.d.ts
CHANGED
package/dist/mezon-js.cjs.js
CHANGED
@@ -7257,6 +7257,8 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7257
7257
|
);
|
7258
7258
|
} else if (message.block_friend) {
|
7259
7259
|
this.onblockfriend(message.block_friend);
|
7260
|
+
} else if (message.un_block_friend) {
|
7261
|
+
this.onunblockfriend(message.block_friend);
|
7260
7262
|
} else if (message.remove_friend) {
|
7261
7263
|
this.onremovefriend(message.remove_friend);
|
7262
7264
|
} else if (message.user_clan_removed_event) {
|
@@ -7441,6 +7443,11 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7441
7443
|
console.log(user);
|
7442
7444
|
}
|
7443
7445
|
}
|
7446
|
+
onunblockfriend(user) {
|
7447
|
+
if (this.verbose && window && window.console) {
|
7448
|
+
console.log(user);
|
7449
|
+
}
|
7450
|
+
}
|
7444
7451
|
onuserclanremoved(user) {
|
7445
7452
|
if (this.verbose && window && window.console) {
|
7446
7453
|
console.log(user);
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -7223,6 +7223,8 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7223
7223
|
);
|
7224
7224
|
} else if (message.block_friend) {
|
7225
7225
|
this.onblockfriend(message.block_friend);
|
7226
|
+
} else if (message.un_block_friend) {
|
7227
|
+
this.onunblockfriend(message.block_friend);
|
7226
7228
|
} else if (message.remove_friend) {
|
7227
7229
|
this.onremovefriend(message.remove_friend);
|
7228
7230
|
} else if (message.user_clan_removed_event) {
|
@@ -7407,6 +7409,11 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7407
7409
|
console.log(user);
|
7408
7410
|
}
|
7409
7411
|
}
|
7412
|
+
onunblockfriend(user) {
|
7413
|
+
if (this.verbose && window && window.console) {
|
7414
|
+
console.log(user);
|
7415
|
+
}
|
7416
|
+
}
|
7410
7417
|
onuserclanremoved(user) {
|
7411
7418
|
if (this.verbose && window && window.console) {
|
7412
7419
|
console.log(user);
|
package/dist/socket.d.ts
CHANGED
@@ -642,6 +642,9 @@ export interface RemoveFriend {
|
|
642
642
|
export interface BlockFriend {
|
643
643
|
user_id: string;
|
644
644
|
}
|
645
|
+
export interface UnblockFriend {
|
646
|
+
user_id: string;
|
647
|
+
}
|
645
648
|
export interface AddUserEmojiUsageEvent {
|
646
649
|
emoji_id: string;
|
647
650
|
clan_id: string;
|
@@ -971,6 +974,7 @@ export interface Socket {
|
|
971
974
|
onuserchannelremoved: (user: UserChannelRemovedEvent) => void;
|
972
975
|
onremovefriend: (user: RemoveFriend) => void;
|
973
976
|
onblockfriend: (user: BlockFriend) => void;
|
977
|
+
onunblockfriend: (user: UnblockFriend) => void;
|
974
978
|
/** Receive clan removed user event */
|
975
979
|
onuserclanremoved: (user: UserClanRemovedEvent) => void;
|
976
980
|
onvoicestarted: (voice: VoiceStartedEvent) => void;
|
@@ -1057,6 +1061,7 @@ export declare class DefaultSocket implements Socket {
|
|
1057
1061
|
onuserchannelremoved(user: UserChannelRemovedEvent): void;
|
1058
1062
|
onremovefriend(user: RemoveFriend): void;
|
1059
1063
|
onblockfriend(user: BlockFriend): void;
|
1064
|
+
onunblockfriend(user: UnblockFriend): void;
|
1060
1065
|
onuserclanremoved(user: UserClanRemovedEvent): void;
|
1061
1066
|
onnotification(notification: ApiNotification): void;
|
1062
1067
|
onstatuspresence(statusPresence: StatusPresenceEvent): void;
|
package/package.json
CHANGED
package/socket.ts
CHANGED
@@ -994,6 +994,11 @@ export interface BlockFriend {
|
|
994
994
|
user_id: string;
|
995
995
|
}
|
996
996
|
|
997
|
+
export interface UnblockFriend {
|
998
|
+
//
|
999
|
+
user_id: string;
|
1000
|
+
}
|
1001
|
+
|
997
1002
|
export interface AddUserEmojiUsageEvent {
|
998
1003
|
emoji_id: string;
|
999
1004
|
clan_id: string;
|
@@ -1654,6 +1659,8 @@ export interface Socket {
|
|
1654
1659
|
|
1655
1660
|
onblockfriend: (user: BlockFriend) => void;
|
1656
1661
|
|
1662
|
+
onunblockfriend: (user: UnblockFriend) => void;
|
1663
|
+
|
1657
1664
|
/** Receive clan removed user event */
|
1658
1665
|
onuserclanremoved: (user: UserClanRemovedEvent) => void;
|
1659
1666
|
|
@@ -1937,6 +1944,8 @@ export class DefaultSocket implements Socket {
|
|
1937
1944
|
);
|
1938
1945
|
} else if (message.block_friend) {
|
1939
1946
|
this.onblockfriend(<BlockFriend>message.block_friend);
|
1947
|
+
} else if (message.un_block_friend) {
|
1948
|
+
this.onunblockfriend(<BlockFriend>message.block_friend);
|
1940
1949
|
} else if (message.remove_friend) {
|
1941
1950
|
this.onremovefriend(<RemoveFriend>message.remove_friend);
|
1942
1951
|
} else if (message.user_clan_removed_event) {
|
@@ -2142,6 +2151,12 @@ export class DefaultSocket implements Socket {
|
|
2142
2151
|
}
|
2143
2152
|
}
|
2144
2153
|
|
2154
|
+
onunblockfriend(user: UnblockFriend) {
|
2155
|
+
if (this.verbose && window && window.console) {
|
2156
|
+
console.log(user);
|
2157
|
+
}
|
2158
|
+
}
|
2159
|
+
|
2145
2160
|
onuserclanremoved(user: UserClanRemovedEvent) {
|
2146
2161
|
if (this.verbose && window && window.console) {
|
2147
2162
|
console.log(user);
|