mezon-js 2.12.76 → 2.12.77
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/dist/mezon-js.cjs.js +7 -0
- package/dist/mezon-js.esm.mjs +7 -0
- package/dist/socket.d.ts +7 -0
- package/package.json +1 -1
- package/socket.ts +16 -0
package/dist/mezon-js.cjs.js
CHANGED
@@ -7345,6 +7345,8 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7345
7345
|
this.onquickmenuevent(message.quick_menu_event);
|
7346
7346
|
} else if (message.meet_participant_event) {
|
7347
7347
|
this.onmeetparticipantevent(message.meet_participant_event);
|
7348
|
+
} else if (message.transfer_ownership_event) {
|
7349
|
+
this.ontransferownership(message.transfer_ownership_event);
|
7348
7350
|
} else {
|
7349
7351
|
if (this.verbose && window && window.console) {
|
7350
7352
|
console.log("Unrecognized message received: %o", message);
|
@@ -7722,6 +7724,11 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7722
7724
|
console.log(event);
|
7723
7725
|
}
|
7724
7726
|
}
|
7727
|
+
ontransferownership(event) {
|
7728
|
+
if (this.verbose && window && window.console) {
|
7729
|
+
console.log(event);
|
7730
|
+
}
|
7731
|
+
}
|
7725
7732
|
onmeetparticipantevent(event) {
|
7726
7733
|
if (this.verbose && window && window.console) {
|
7727
7734
|
console.log(event);
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -7311,6 +7311,8 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7311
7311
|
this.onquickmenuevent(message.quick_menu_event);
|
7312
7312
|
} else if (message.meet_participant_event) {
|
7313
7313
|
this.onmeetparticipantevent(message.meet_participant_event);
|
7314
|
+
} else if (message.transfer_ownership_event) {
|
7315
|
+
this.ontransferownership(message.transfer_ownership_event);
|
7314
7316
|
} else {
|
7315
7317
|
if (this.verbose && window && window.console) {
|
7316
7318
|
console.log("Unrecognized message received: %o", message);
|
@@ -7688,6 +7690,11 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7688
7690
|
console.log(event);
|
7689
7691
|
}
|
7690
7692
|
}
|
7693
|
+
ontransferownership(event) {
|
7694
|
+
if (this.verbose && window && window.console) {
|
7695
|
+
console.log(event);
|
7696
|
+
}
|
7697
|
+
}
|
7691
7698
|
onmeetparticipantevent(event) {
|
7692
7699
|
if (this.verbose && window && window.console) {
|
7693
7700
|
console.log(event);
|
package/dist/socket.d.ts
CHANGED
@@ -242,6 +242,11 @@ interface ChannelMessageSend {
|
|
242
242
|
topic_id?: string;
|
243
243
|
};
|
244
244
|
}
|
245
|
+
interface TransferOwnershipEvent {
|
246
|
+
clan_id: string;
|
247
|
+
prev_owner: string;
|
248
|
+
curr_owner: string;
|
249
|
+
}
|
245
250
|
interface QuickMenuEvent {
|
246
251
|
quick_menu_event: {
|
247
252
|
menu_name: string;
|
@@ -1028,6 +1033,7 @@ export interface Socket {
|
|
1028
1033
|
onjoinchannelappevent: (join_channel_app_data: JoinChannelAppData) => void;
|
1029
1034
|
onunpinmessageevent: (unpin_message_event: UnpinMessageEvent) => void;
|
1030
1035
|
onquickmenuevent: (event: QuickMenuEvent) => void;
|
1036
|
+
ontransferownership: (event: TransferOwnershipEvent) => void;
|
1031
1037
|
}
|
1032
1038
|
/** Reports an error received from a socket message. */
|
1033
1039
|
export interface SocketError {
|
@@ -1122,6 +1128,7 @@ export declare class DefaultSocket implements Socket {
|
|
1122
1128
|
onjoinchannelappevent(join_channel_app_data: JoinChannelAppData): void;
|
1123
1129
|
onunpinmessageevent(unpin_message_event: UnpinMessageEvent): void;
|
1124
1130
|
onquickmenuevent(event: QuickMenuEvent): void;
|
1131
|
+
ontransferownership(event: TransferOwnershipEvent): void;
|
1125
1132
|
onmeetparticipantevent(event: MeetParticipantEvent): void;
|
1126
1133
|
send(message: ChannelJoin | ChannelLeave | ChannelMessageSend | ChannelMessageUpdate | CustomStatusEvent | ChannelMessageRemove | MessageTypingEvent | LastSeenMessageEvent | Rpc | StatusFollow | StatusUnfollow | StatusUpdate | Ping | WebrtcSignalingFwd | IncomingCallPush | MessageButtonClicked | DropdownBoxSelected | ChannelAppEvent | EphemeralMessageSend | VoiceReactionSend | ListDataSocket | QuickMenuEvent, sendTimeout?: number): Promise<any>;
|
1127
1134
|
followUsers(userIds: string[]): Promise<Status>;
|
package/package.json
CHANGED
package/socket.ts
CHANGED
@@ -389,6 +389,12 @@ interface ChannelMessageSend {
|
|
389
389
|
};
|
390
390
|
}
|
391
391
|
|
392
|
+
interface TransferOwnershipEvent {
|
393
|
+
clan_id: string;
|
394
|
+
prev_owner: string;
|
395
|
+
curr_owner: string;
|
396
|
+
}
|
397
|
+
|
392
398
|
interface QuickMenuEvent {
|
393
399
|
quick_menu_event: {
|
394
400
|
menu_name: string,
|
@@ -1781,6 +1787,8 @@ export interface Socket {
|
|
1781
1787
|
onunpinmessageevent: (unpin_message_event: UnpinMessageEvent)=> void;
|
1782
1788
|
|
1783
1789
|
onquickmenuevent: (event: QuickMenuEvent) => void;
|
1790
|
+
|
1791
|
+
ontransferownership: (event: TransferOwnershipEvent) => void;
|
1784
1792
|
}
|
1785
1793
|
|
1786
1794
|
/** Reports an error received from a socket message. */
|
@@ -2030,6 +2038,8 @@ export class DefaultSocket implements Socket {
|
|
2030
2038
|
this.onquickmenuevent(<QuickMenuEvent>message.quick_menu_event);
|
2031
2039
|
} else if (message.meet_participant_event) {
|
2032
2040
|
this.onmeetparticipantevent(<MeetParticipantEvent>message.meet_participant_event);
|
2041
|
+
} else if (message.transfer_ownership_event) {
|
2042
|
+
this.ontransferownership(<TransferOwnershipEvent>message.transfer_ownership_event);
|
2033
2043
|
} else {
|
2034
2044
|
if (this.verbose && window && window.console) {
|
2035
2045
|
console.log("Unrecognized message received: %o", message);
|
@@ -2481,6 +2491,12 @@ export class DefaultSocket implements Socket {
|
|
2481
2491
|
}
|
2482
2492
|
}
|
2483
2493
|
|
2494
|
+
ontransferownership(event: TransferOwnershipEvent) {
|
2495
|
+
if (this.verbose && window && window.console) {
|
2496
|
+
console.log(event);
|
2497
|
+
}
|
2498
|
+
}
|
2499
|
+
|
2484
2500
|
onmeetparticipantevent(event: MeetParticipantEvent) {
|
2485
2501
|
if (this.verbose && window && window.console) {
|
2486
2502
|
console.log(event);
|