mezon-js 2.9.79 → 2.9.80
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 +2 -2
- package/dist/mezon-js.esm.mjs +2 -2
- package/dist/socket.d.ts +3 -2
- package/package.json +1 -1
- package/socket.ts +5 -3
package/dist/mezon-js.cjs.js
CHANGED
@@ -7476,10 +7476,10 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7476
7476
|
return response.check_name_existed_event;
|
7477
7477
|
});
|
7478
7478
|
}
|
7479
|
-
forwardWebrtcSignaling(receiver_id, data_type, json_data, channel_id) {
|
7479
|
+
forwardWebrtcSignaling(receiver_id, data_type, json_data, channel_id, caller_id) {
|
7480
7480
|
return __async(this, null, function* () {
|
7481
7481
|
const response = yield this.send({
|
7482
|
-
webrtc_signaling_fwd: { receiver_id, data_type, json_data, channel_id }
|
7482
|
+
webrtc_signaling_fwd: { receiver_id, data_type, json_data, channel_id, caller_id }
|
7483
7483
|
});
|
7484
7484
|
return response.webrtc_signaling_fwd;
|
7485
7485
|
});
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -7446,10 +7446,10 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7446
7446
|
return response.check_name_existed_event;
|
7447
7447
|
});
|
7448
7448
|
}
|
7449
|
-
forwardWebrtcSignaling(receiver_id, data_type, json_data, channel_id) {
|
7449
|
+
forwardWebrtcSignaling(receiver_id, data_type, json_data, channel_id, caller_id) {
|
7450
7450
|
return __async(this, null, function* () {
|
7451
7451
|
const response = yield this.send({
|
7452
|
-
webrtc_signaling_fwd: { receiver_id, data_type, json_data, channel_id }
|
7452
|
+
webrtc_signaling_fwd: { receiver_id, data_type, json_data, channel_id, caller_id }
|
7453
7453
|
});
|
7454
7454
|
return response.webrtc_signaling_fwd;
|
7455
7455
|
});
|
package/dist/socket.d.ts
CHANGED
@@ -589,6 +589,7 @@ export interface WebrtcSignalingFwd {
|
|
589
589
|
data_type: number;
|
590
590
|
json_data: string;
|
591
591
|
channel_id: string;
|
592
|
+
caller_id: string;
|
592
593
|
}
|
593
594
|
export interface JoinPTTChannel {
|
594
595
|
channel_id: string;
|
@@ -708,7 +709,7 @@ export interface Socket {
|
|
708
709
|
checkDuplicateName(name: string, condition_id: string, type: number): Promise<CheckNameExistedEvent>;
|
709
710
|
handleMessageButtonClick: (message_id: string, channel_id: string, button_id: string, sender_id: string, user_id: string) => Promise<MessageButtonClicked>;
|
710
711
|
onmessagebuttonclicked: (event: MessageButtonClicked) => void;
|
711
|
-
forwardWebrtcSignaling: (receiverId: string, dataType: number, jsonData: string, channelId: string) => Promise<WebrtcSignalingFwd>;
|
712
|
+
forwardWebrtcSignaling: (receiverId: string, dataType: number, jsonData: string, channelId: string, caller_id: string) => Promise<WebrtcSignalingFwd>;
|
712
713
|
onwebrtcsignalingfwd: (event: WebrtcSignalingFwd) => void;
|
713
714
|
oneventcreated: (clan_event_created: ApiCreateEventRequest) => void;
|
714
715
|
oncoffeegiven: (give_coffee_event: ApiGiveCoffeeEvent) => void;
|
@@ -819,7 +820,7 @@ export declare class DefaultSocket implements Socket {
|
|
819
820
|
writeVoiceLeaved(id: string, clanId: string, voiceChannelId: string, voiceUserId: string): Promise<VoiceLeavedEvent>;
|
820
821
|
writeCustomStatus(clan_id: string, status: string): Promise<CustomStatusEvent>;
|
821
822
|
checkDuplicateName(name: string, condition_id: string, type: number): Promise<CheckNameExistedEvent>;
|
822
|
-
forwardWebrtcSignaling(receiver_id: string, data_type: number, json_data: string, channel_id: string): Promise<WebrtcSignalingFwd>;
|
823
|
+
forwardWebrtcSignaling(receiver_id: string, data_type: number, json_data: string, channel_id: string, caller_id: string): Promise<WebrtcSignalingFwd>;
|
823
824
|
handleMessageButtonClick(message_id: string, channel_id: string, button_id: string, sender_id: string, user_id: string): Promise<MessageButtonClicked>;
|
824
825
|
joinPTTChannel(channelId: string, dataType: number, jsonData: string): Promise<JoinPTTChannel>;
|
825
826
|
talkPTTChannel(channelId: string, dataType: number, jsonData: string, state: number): Promise<TalkPTTChannel>;
|
package/package.json
CHANGED
package/socket.ts
CHANGED
@@ -833,6 +833,7 @@ export interface WebrtcSignalingFwd {
|
|
833
833
|
data_type: number;
|
834
834
|
json_data: string;
|
835
835
|
channel_id: string;
|
836
|
+
caller_id: string;
|
836
837
|
}
|
837
838
|
|
838
839
|
export interface JoinPTTChannel {
|
@@ -1147,7 +1148,7 @@ export interface Socket {
|
|
1147
1148
|
|
1148
1149
|
onmessagebuttonclicked: (event: MessageButtonClicked) => void;
|
1149
1150
|
|
1150
|
-
forwardWebrtcSignaling: (receiverId: string, dataType: number, jsonData: string, channelId: string) => Promise<WebrtcSignalingFwd>;
|
1151
|
+
forwardWebrtcSignaling: (receiverId: string, dataType: number, jsonData: string, channelId: string, caller_id: string) => Promise<WebrtcSignalingFwd>;
|
1151
1152
|
|
1152
1153
|
onwebrtcsignalingfwd: (event: WebrtcSignalingFwd) => void;
|
1153
1154
|
|
@@ -2145,9 +2146,10 @@ export class DefaultSocket implements Socket {
|
|
2145
2146
|
receiver_id: string,
|
2146
2147
|
data_type: number,
|
2147
2148
|
json_data: string,
|
2148
|
-
channel_id: string
|
2149
|
+
channel_id: string,
|
2150
|
+
caller_id: string): Promise<WebrtcSignalingFwd> {
|
2149
2151
|
const response = await this.send({
|
2150
|
-
webrtc_signaling_fwd: { receiver_id: receiver_id, data_type: data_type, json_data: json_data, channel_id: channel_id },
|
2152
|
+
webrtc_signaling_fwd: { receiver_id: receiver_id, data_type: data_type, json_data: json_data, channel_id: channel_id, caller_id: caller_id },
|
2151
2153
|
});
|
2152
2154
|
return response.webrtc_signaling_fwd;
|
2153
2155
|
}
|