mezon-js 2.9.85 → 2.9.87
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 +13 -5
- package/client.ts +2 -2
- package/dist/api.gen.d.ts +9 -5
- package/dist/client.d.ts +1 -1
- package/dist/mezon-js.cjs.js +15 -2
- package/dist/mezon-js.esm.mjs +15 -2
- package/dist/socket.d.ts +16 -7
- package/package.json +1 -1
- package/socket.ts +73 -40
package/api.gen.ts
CHANGED
@@ -2489,19 +2489,21 @@ export interface ApiListOnboardingResponse {
|
|
2489
2489
|
}
|
2490
2490
|
|
2491
2491
|
/** */
|
2492
|
-
export interface
|
2492
|
+
export interface OnboardingAnswer {
|
2493
2493
|
//
|
2494
|
-
|
2494
|
+
emoji?: string;
|
2495
2495
|
//
|
2496
2496
|
description?: string;
|
2497
2497
|
//
|
2498
2498
|
title?: string;
|
2499
|
+
//
|
2500
|
+
image_url?: string;
|
2499
2501
|
}
|
2500
2502
|
|
2501
2503
|
/** */
|
2502
2504
|
export interface ApiOnboardingContent {
|
2503
2505
|
//
|
2504
|
-
answers?: Array<
|
2506
|
+
answers?: Array<OnboardingAnswer>;
|
2505
2507
|
//
|
2506
2508
|
channel_id?: string;
|
2507
2509
|
//
|
@@ -2512,12 +2514,14 @@ export interface ApiOnboardingContent {
|
|
2512
2514
|
task_type?: number;
|
2513
2515
|
//
|
2514
2516
|
title?: string;
|
2517
|
+
//
|
2518
|
+
image_url?: string;
|
2515
2519
|
}
|
2516
2520
|
|
2517
2521
|
/** */
|
2518
2522
|
export interface MezonUpdateOnboardingBody {
|
2519
2523
|
//
|
2520
|
-
answers?: Array<
|
2524
|
+
answers?: Array<OnboardingAnswer>;
|
2521
2525
|
//
|
2522
2526
|
channel_id?: string;
|
2523
2527
|
//
|
@@ -2528,6 +2532,8 @@ export interface MezonUpdateOnboardingBody {
|
|
2528
2532
|
task_type?: number;
|
2529
2533
|
//
|
2530
2534
|
title?: string;
|
2535
|
+
//
|
2536
|
+
image_url?: string;
|
2531
2537
|
}
|
2532
2538
|
|
2533
2539
|
/** */
|
@@ -2541,7 +2547,7 @@ export interface ApiCreateOnboardingRequest {
|
|
2541
2547
|
/** */
|
2542
2548
|
export interface ApiOnboardingItem {
|
2543
2549
|
//
|
2544
|
-
answers?: Array<
|
2550
|
+
answers?: Array<OnboardingAnswer>;
|
2545
2551
|
//
|
2546
2552
|
channel_id?: string;
|
2547
2553
|
//
|
@@ -2560,6 +2566,8 @@ export interface ApiOnboardingItem {
|
|
2560
2566
|
title?: string;
|
2561
2567
|
//The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was last updated.
|
2562
2568
|
update_time?: string;
|
2569
|
+
//
|
2570
|
+
image_url?: string;
|
2563
2571
|
}
|
2564
2572
|
|
2565
2573
|
/** */
|
package/client.ts
CHANGED
@@ -4653,7 +4653,7 @@ export class Client {
|
|
4653
4653
|
//**update onboarding step by id */
|
4654
4654
|
async updateOnboardingStepByClanId(
|
4655
4655
|
session: Session,
|
4656
|
-
|
4656
|
+
clan_id: string,
|
4657
4657
|
request: MezonUpdateOnboardingStepByClanIdBody
|
4658
4658
|
) {
|
4659
4659
|
if (
|
@@ -4665,7 +4665,7 @@ export class Client {
|
|
4665
4665
|
}
|
4666
4666
|
|
4667
4667
|
return this.apiClient
|
4668
|
-
.updateOnboardingStepByClanId(session.token,
|
4668
|
+
.updateOnboardingStepByClanId(session.token, clan_id, request)
|
4669
4669
|
.then((response: any) => {
|
4670
4670
|
return response !== undefined;
|
4671
4671
|
});
|
package/dist/api.gen.d.ts
CHANGED
@@ -1448,28 +1448,31 @@ export interface ApiListOnboardingResponse {
|
|
1448
1448
|
list_onboarding?: Array<ApiOnboardingItem>;
|
1449
1449
|
}
|
1450
1450
|
/** */
|
1451
|
-
export interface
|
1452
|
-
|
1451
|
+
export interface OnboardingAnswer {
|
1452
|
+
emoji?: string;
|
1453
1453
|
description?: string;
|
1454
1454
|
title?: string;
|
1455
|
+
image_url?: string;
|
1455
1456
|
}
|
1456
1457
|
/** */
|
1457
1458
|
export interface ApiOnboardingContent {
|
1458
|
-
answers?: Array<
|
1459
|
+
answers?: Array<OnboardingAnswer>;
|
1459
1460
|
channel_id?: string;
|
1460
1461
|
content?: string;
|
1461
1462
|
guide_type?: number;
|
1462
1463
|
task_type?: number;
|
1463
1464
|
title?: string;
|
1465
|
+
image_url?: string;
|
1464
1466
|
}
|
1465
1467
|
/** */
|
1466
1468
|
export interface MezonUpdateOnboardingBody {
|
1467
|
-
answers?: Array<
|
1469
|
+
answers?: Array<OnboardingAnswer>;
|
1468
1470
|
channel_id?: string;
|
1469
1471
|
clan_id?: string;
|
1470
1472
|
content?: string;
|
1471
1473
|
task_type?: number;
|
1472
1474
|
title?: string;
|
1475
|
+
image_url?: string;
|
1473
1476
|
}
|
1474
1477
|
/** */
|
1475
1478
|
export interface ApiCreateOnboardingRequest {
|
@@ -1478,7 +1481,7 @@ export interface ApiCreateOnboardingRequest {
|
|
1478
1481
|
}
|
1479
1482
|
/** */
|
1480
1483
|
export interface ApiOnboardingItem {
|
1481
|
-
answers?: Array<
|
1484
|
+
answers?: Array<OnboardingAnswer>;
|
1482
1485
|
channel_id?: string;
|
1483
1486
|
clan_id?: string;
|
1484
1487
|
content?: string;
|
@@ -1488,6 +1491,7 @@ export interface ApiOnboardingItem {
|
|
1488
1491
|
task_type?: number;
|
1489
1492
|
title?: string;
|
1490
1493
|
update_time?: string;
|
1494
|
+
image_url?: string;
|
1491
1495
|
}
|
1492
1496
|
/** */
|
1493
1497
|
export interface MezonUpdateClanWebhookByIdBody {
|
package/dist/client.d.ts
CHANGED
@@ -624,7 +624,7 @@ export declare class Client {
|
|
624
624
|
deleteClanWebhookById(session: Session, id: string, clan_id: string): Promise<boolean>;
|
625
625
|
updateClanWebhookById(session: Session, id: string, request: MezonUpdateClanWebhookByIdBody): Promise<boolean>;
|
626
626
|
listOnboardingStep(session: Session, clan_id?: string, limit?: number, page?: number): Promise<ApiListOnboardingStepResponse>;
|
627
|
-
updateOnboardingStepByClanId(session: Session,
|
627
|
+
updateOnboardingStepByClanId(session: Session, clan_id: string, request: MezonUpdateOnboardingStepByClanIdBody): Promise<boolean>;
|
628
628
|
updateUserStatus(session: Session, request: ApiUserStatusUpdate): Promise<boolean>;
|
629
629
|
getUserStatus(session: Session): Promise<ApiUserStatus>;
|
630
630
|
}
|
package/dist/mezon-js.cjs.js
CHANGED
@@ -7631,6 +7631,19 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7631
7631
|
return response.webrtc_signaling_fwd;
|
7632
7632
|
});
|
7633
7633
|
}
|
7634
|
+
makeCallPush(receiver_id, json_data, channel_id, caller_id) {
|
7635
|
+
return __async(this, null, function* () {
|
7636
|
+
const response = yield this.send({
|
7637
|
+
incoming_call_push: {
|
7638
|
+
receiver_id,
|
7639
|
+
json_data,
|
7640
|
+
channel_id,
|
7641
|
+
caller_id
|
7642
|
+
}
|
7643
|
+
});
|
7644
|
+
return response.incoming_call_push;
|
7645
|
+
});
|
7646
|
+
}
|
7634
7647
|
handleDropdownBoxSelected(message_id, channel_id, selectbox_id, sender_id, user_id, value) {
|
7635
7648
|
return __async(this, null, function* () {
|
7636
7649
|
const response = yield this.send({
|
@@ -10185,12 +10198,12 @@ var Client = class {
|
|
10185
10198
|
});
|
10186
10199
|
}
|
10187
10200
|
//**update onboarding step by id */
|
10188
|
-
updateOnboardingStepByClanId(session,
|
10201
|
+
updateOnboardingStepByClanId(session, clan_id, request) {
|
10189
10202
|
return __async(this, null, function* () {
|
10190
10203
|
if (this.autoRefreshSession && session.refresh_token && session.isexpired((Date.now() + this.expiredTimespanMs) / 1e3)) {
|
10191
10204
|
yield this.sessionRefresh(session);
|
10192
10205
|
}
|
10193
|
-
return this.apiClient.updateOnboardingStepByClanId(session.token,
|
10206
|
+
return this.apiClient.updateOnboardingStepByClanId(session.token, clan_id, request).then((response) => {
|
10194
10207
|
return response !== void 0;
|
10195
10208
|
});
|
10196
10209
|
});
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -7601,6 +7601,19 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7601
7601
|
return response.webrtc_signaling_fwd;
|
7602
7602
|
});
|
7603
7603
|
}
|
7604
|
+
makeCallPush(receiver_id, json_data, channel_id, caller_id) {
|
7605
|
+
return __async(this, null, function* () {
|
7606
|
+
const response = yield this.send({
|
7607
|
+
incoming_call_push: {
|
7608
|
+
receiver_id,
|
7609
|
+
json_data,
|
7610
|
+
channel_id,
|
7611
|
+
caller_id
|
7612
|
+
}
|
7613
|
+
});
|
7614
|
+
return response.incoming_call_push;
|
7615
|
+
});
|
7616
|
+
}
|
7604
7617
|
handleDropdownBoxSelected(message_id, channel_id, selectbox_id, sender_id, user_id, value) {
|
7605
7618
|
return __async(this, null, function* () {
|
7606
7619
|
const response = yield this.send({
|
@@ -10155,12 +10168,12 @@ var Client = class {
|
|
10155
10168
|
});
|
10156
10169
|
}
|
10157
10170
|
//**update onboarding step by id */
|
10158
|
-
updateOnboardingStepByClanId(session,
|
10171
|
+
updateOnboardingStepByClanId(session, clan_id, request) {
|
10159
10172
|
return __async(this, null, function* () {
|
10160
10173
|
if (this.autoRefreshSession && session.refresh_token && session.isexpired((Date.now() + this.expiredTimespanMs) / 1e3)) {
|
10161
10174
|
yield this.sessionRefresh(session);
|
10162
10175
|
}
|
10163
|
-
return this.apiClient.updateOnboardingStepByClanId(session.token,
|
10176
|
+
return this.apiClient.updateOnboardingStepByClanId(session.token, clan_id, request).then((response) => {
|
10164
10177
|
return response !== void 0;
|
10165
10178
|
});
|
10166
10179
|
});
|
package/dist/socket.d.ts
CHANGED
@@ -30,6 +30,7 @@ export interface Presence {
|
|
30
30
|
/** The status of the user */
|
31
31
|
status: string;
|
32
32
|
is_mobile: boolean;
|
33
|
+
metadata: string;
|
33
34
|
}
|
34
35
|
/** A response from a channel join operation. */
|
35
36
|
export interface Channel {
|
@@ -592,6 +593,12 @@ export interface MessageButtonClicked {
|
|
592
593
|
sender_id: string;
|
593
594
|
user_id: string;
|
594
595
|
}
|
596
|
+
export interface IncomingCallPush {
|
597
|
+
receiver_id: string;
|
598
|
+
json_data: string;
|
599
|
+
channel_id: string;
|
600
|
+
caller_id: string;
|
601
|
+
}
|
595
602
|
export interface WebrtcSignalingFwd {
|
596
603
|
receiver_id: string;
|
597
604
|
data_type: number;
|
@@ -662,6 +669,13 @@ export interface Socket {
|
|
662
669
|
writeVoiceLeaved(id: string, clanId: string, voiceChannelId: string, voiceUserId: string): Promise<VoiceLeavedEvent>;
|
663
670
|
joinPTTChannel(channelId: string, dataType: number, jsonData: string): Promise<JoinPTTChannel>;
|
664
671
|
talkPTTChannel(channelId: string, dataType: number, jsonData: string, state: number): Promise<TalkPTTChannel>;
|
672
|
+
setHeartbeatTimeoutMs(ms: number): void;
|
673
|
+
getHeartbeatTimeoutMs(): number;
|
674
|
+
checkDuplicateName(name: string, condition_id: string, type: number): Promise<CheckNameExistedEvent>;
|
675
|
+
handleMessageButtonClick: (message_id: string, channel_id: string, button_id: string, sender_id: string, user_id: string) => Promise<MessageButtonClicked>;
|
676
|
+
handleDropdownBoxSelected: (message_id: string, channel_id: string, selectbox_id: string, sender_id: string, user_id: string, value: Array<string>) => Promise<DropdownBoxSelected>;
|
677
|
+
forwardWebrtcSignaling: (receiverId: string, dataType: number, jsonData: string, channelId: string, caller_id: string) => Promise<WebrtcSignalingFwd>;
|
678
|
+
makeCallPush: (receiverId: string, jsonData: string, channelId: string, caller_id: string) => Promise<IncomingCallPush>;
|
665
679
|
/** Handle disconnect events received from the socket. */
|
666
680
|
ondisconnect: (evt: Event) => void;
|
667
681
|
/** Handle error events received from the socket. */
|
@@ -717,12 +731,6 @@ export interface Socket {
|
|
717
731
|
onclanprofileupdated: (clanprofile: ClanProfileUpdatedEvent) => void;
|
718
732
|
onclanupdated: (clan: ClanUpdatedEvent) => void;
|
719
733
|
onlastseenupdated: (event: LastSeenMessageEvent) => void;
|
720
|
-
setHeartbeatTimeoutMs(ms: number): void;
|
721
|
-
getHeartbeatTimeoutMs(): number;
|
722
|
-
checkDuplicateName(name: string, condition_id: string, type: number): Promise<CheckNameExistedEvent>;
|
723
|
-
handleMessageButtonClick: (message_id: string, channel_id: string, button_id: string, sender_id: string, user_id: string) => Promise<MessageButtonClicked>;
|
724
|
-
handleDropdownBoxSelected: (message_id: string, channel_id: string, selectbox_id: string, sender_id: string, user_id: string, value: Array<string>) => Promise<DropdownBoxSelected>;
|
725
|
-
forwardWebrtcSignaling: (receiverId: string, dataType: number, jsonData: string, channelId: string, caller_id: string) => Promise<WebrtcSignalingFwd>;
|
726
734
|
onmessagebuttonclicked: (event: MessageButtonClicked) => void;
|
727
735
|
onmessagedropdownboxselected: (event: DropdownBoxSelected) => void;
|
728
736
|
onwebrtcsignalingfwd: (event: WebrtcSignalingFwd) => void;
|
@@ -821,7 +829,7 @@ export declare class DefaultSocket implements Socket {
|
|
821
829
|
onactivityupdated(list_activity: ListActivity): void;
|
822
830
|
onjoinpttchannel(join_ptt_channel: JoinPTTChannel): void;
|
823
831
|
ontalkpttchannel(talk_ptt_channel: TalkPTTChannel): void;
|
824
|
-
send(message: ChannelJoin | ChannelLeave | ChannelMessageSend | ChannelMessageUpdate | CustomStatusEvent | ChannelMessageRemove | MessageTypingEvent | LastSeenMessageEvent | Rpc | StatusFollow | StatusUnfollow | StatusUpdate | Ping | WebrtcSignalingFwd | MessageButtonClicked | DropdownBoxSelected | JoinPTTChannel | TalkPTTChannel, sendTimeout?: number): Promise<any>;
|
832
|
+
send(message: ChannelJoin | ChannelLeave | ChannelMessageSend | ChannelMessageUpdate | CustomStatusEvent | ChannelMessageRemove | MessageTypingEvent | LastSeenMessageEvent | Rpc | StatusFollow | StatusUnfollow | StatusUpdate | Ping | WebrtcSignalingFwd | IncomingCallPush | MessageButtonClicked | DropdownBoxSelected | JoinPTTChannel | TalkPTTChannel, sendTimeout?: number): Promise<any>;
|
825
833
|
followUsers(userIds: string[]): Promise<Status>;
|
826
834
|
joinClanChat(clan_id: string): Promise<ClanJoin>;
|
827
835
|
joinChat(clan_id: string, channel_id: string, channel_type: number, is_public: boolean): Promise<Channel>;
|
@@ -841,6 +849,7 @@ export declare class DefaultSocket implements Socket {
|
|
841
849
|
writeCustomStatus(clan_id: string, status: string): Promise<CustomStatusEvent>;
|
842
850
|
checkDuplicateName(name: string, condition_id: string, type: number): Promise<CheckNameExistedEvent>;
|
843
851
|
forwardWebrtcSignaling(receiver_id: string, data_type: number, json_data: string, channel_id: string, caller_id: string): Promise<WebrtcSignalingFwd>;
|
852
|
+
makeCallPush(receiver_id: string, json_data: string, channel_id: string, caller_id: string): Promise<IncomingCallPush>;
|
844
853
|
handleDropdownBoxSelected(message_id: string, channel_id: string, selectbox_id: string, sender_id: string, user_id: string, value: Array<string>): Promise<DropdownBoxSelected>;
|
845
854
|
handleMessageButtonClick(message_id: string, channel_id: string, button_id: string, sender_id: string, user_id: string): Promise<MessageButtonClicked>;
|
846
855
|
joinPTTChannel(channelId: string, dataType: number, jsonData: string): Promise<JoinPTTChannel>;
|
package/package.json
CHANGED
package/socket.ts
CHANGED
@@ -50,8 +50,10 @@ export interface Presence {
|
|
50
50
|
node: string;
|
51
51
|
/** The status of the user */
|
52
52
|
status: string;
|
53
|
-
//
|
53
|
+
// User Mobile
|
54
54
|
is_mobile: boolean;
|
55
|
+
// Metadata
|
56
|
+
metadata: string;
|
55
57
|
}
|
56
58
|
|
57
59
|
/** A response from a channel join operation. */
|
@@ -837,6 +839,13 @@ export interface MessageButtonClicked {
|
|
837
839
|
user_id: string;
|
838
840
|
}
|
839
841
|
|
842
|
+
export interface IncomingCallPush {
|
843
|
+
receiver_id: string;
|
844
|
+
json_data: string;
|
845
|
+
channel_id: string;
|
846
|
+
caller_id: string;
|
847
|
+
}
|
848
|
+
|
840
849
|
export interface WebrtcSignalingFwd {
|
841
850
|
receiver_id: string;
|
842
851
|
data_type: number;
|
@@ -1037,6 +1046,50 @@ export interface Socket {
|
|
1037
1046
|
state: number
|
1038
1047
|
): Promise<TalkPTTChannel>;
|
1039
1048
|
|
1049
|
+
/* Set the heartbeat timeout used by the socket to detect if it has lost connectivity to the server. */
|
1050
|
+
setHeartbeatTimeoutMs(ms: number): void;
|
1051
|
+
|
1052
|
+
/* Get the heartbeat timeout used by the socket to detect if it has lost connectivity to the server. */
|
1053
|
+
getHeartbeatTimeoutMs(): number;
|
1054
|
+
|
1055
|
+
checkDuplicateName(
|
1056
|
+
name: string,
|
1057
|
+
condition_id: string,
|
1058
|
+
type: number
|
1059
|
+
): Promise<CheckNameExistedEvent>;
|
1060
|
+
|
1061
|
+
handleMessageButtonClick: (
|
1062
|
+
message_id: string,
|
1063
|
+
channel_id: string,
|
1064
|
+
button_id: string,
|
1065
|
+
sender_id: string,
|
1066
|
+
user_id: string
|
1067
|
+
) => Promise<MessageButtonClicked>;
|
1068
|
+
|
1069
|
+
handleDropdownBoxSelected: (
|
1070
|
+
message_id: string,
|
1071
|
+
channel_id: string,
|
1072
|
+
selectbox_id: string,
|
1073
|
+
sender_id: string,
|
1074
|
+
user_id: string,
|
1075
|
+
value: Array<string>
|
1076
|
+
) => Promise<DropdownBoxSelected>;
|
1077
|
+
|
1078
|
+
forwardWebrtcSignaling: (
|
1079
|
+
receiverId: string,
|
1080
|
+
dataType: number,
|
1081
|
+
jsonData: string,
|
1082
|
+
channelId: string,
|
1083
|
+
caller_id: string
|
1084
|
+
) => Promise<WebrtcSignalingFwd>;
|
1085
|
+
|
1086
|
+
makeCallPush: (
|
1087
|
+
receiverId: string,
|
1088
|
+
jsonData: string,
|
1089
|
+
channelId: string,
|
1090
|
+
caller_id: string
|
1091
|
+
) => Promise<IncomingCallPush>;
|
1092
|
+
|
1040
1093
|
/** Handle disconnect events received from the socket. */
|
1041
1094
|
ondisconnect: (evt: Event) => void;
|
1042
1095
|
|
@@ -1139,44 +1192,6 @@ export interface Socket {
|
|
1139
1192
|
// when user update last seen message
|
1140
1193
|
onlastseenupdated: (event: LastSeenMessageEvent) => void;
|
1141
1194
|
|
1142
|
-
/* Set the heartbeat timeout used by the socket to detect if it has lost connectivity to the server. */
|
1143
|
-
setHeartbeatTimeoutMs(ms: number): void;
|
1144
|
-
|
1145
|
-
/* Get the heartbeat timeout used by the socket to detect if it has lost connectivity to the server. */
|
1146
|
-
getHeartbeatTimeoutMs(): number;
|
1147
|
-
|
1148
|
-
checkDuplicateName(
|
1149
|
-
name: string,
|
1150
|
-
condition_id: string,
|
1151
|
-
type: number
|
1152
|
-
): Promise<CheckNameExistedEvent>;
|
1153
|
-
|
1154
|
-
handleMessageButtonClick: (
|
1155
|
-
message_id: string,
|
1156
|
-
channel_id: string,
|
1157
|
-
button_id: string,
|
1158
|
-
sender_id: string,
|
1159
|
-
user_id: string
|
1160
|
-
) => Promise<MessageButtonClicked>;
|
1161
|
-
|
1162
|
-
handleDropdownBoxSelected: (
|
1163
|
-
message_id: string,
|
1164
|
-
channel_id: string,
|
1165
|
-
selectbox_id: string,
|
1166
|
-
sender_id: string,
|
1167
|
-
user_id: string,
|
1168
|
-
value: Array<string>
|
1169
|
-
) => Promise<DropdownBoxSelected>;
|
1170
|
-
|
1171
|
-
forwardWebrtcSignaling: (
|
1172
|
-
receiverId: string,
|
1173
|
-
dataType: number,
|
1174
|
-
jsonData: string,
|
1175
|
-
channelId: string,
|
1176
|
-
caller_id: string
|
1177
|
-
) => Promise<WebrtcSignalingFwd>;
|
1178
|
-
|
1179
|
-
|
1180
1195
|
onmessagebuttonclicked: (event: MessageButtonClicked) => void;
|
1181
1196
|
|
1182
1197
|
onmessagedropdownboxselected: (event: DropdownBoxSelected) => void;
|
@@ -1870,6 +1885,7 @@ export class DefaultSocket implements Socket {
|
|
1870
1885
|
| StatusUpdate
|
1871
1886
|
| Ping
|
1872
1887
|
| WebrtcSignalingFwd
|
1888
|
+
| IncomingCallPush
|
1873
1889
|
| MessageButtonClicked
|
1874
1890
|
| DropdownBoxSelected
|
1875
1891
|
| JoinPTTChannel
|
@@ -2226,6 +2242,23 @@ export class DefaultSocket implements Socket {
|
|
2226
2242
|
return response.webrtc_signaling_fwd;
|
2227
2243
|
}
|
2228
2244
|
|
2245
|
+
async makeCallPush(
|
2246
|
+
receiver_id: string,
|
2247
|
+
json_data: string,
|
2248
|
+
channel_id: string,
|
2249
|
+
caller_id: string
|
2250
|
+
): Promise<IncomingCallPush> {
|
2251
|
+
const response = await this.send({
|
2252
|
+
incoming_call_push: {
|
2253
|
+
receiver_id: receiver_id,
|
2254
|
+
json_data: json_data,
|
2255
|
+
channel_id: channel_id,
|
2256
|
+
caller_id: caller_id,
|
2257
|
+
},
|
2258
|
+
});
|
2259
|
+
return response.incoming_call_push;
|
2260
|
+
}
|
2261
|
+
|
2229
2262
|
async handleDropdownBoxSelected(
|
2230
2263
|
message_id: string,
|
2231
2264
|
channel_id: string,
|
@@ -2241,7 +2274,7 @@ export class DefaultSocket implements Socket {
|
|
2241
2274
|
selectbox_id: selectbox_id,
|
2242
2275
|
sender_id: sender_id,
|
2243
2276
|
user_id: user_id,
|
2244
|
-
value: value
|
2277
|
+
value: value,
|
2245
2278
|
},
|
2246
2279
|
});
|
2247
2280
|
return response.dropdown_box_selected;
|