mezon-js 2.9.84 → 2.9.86
Sign up to get free protection for your applications and to get access to all the features.
- 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 +26 -2
- package/dist/mezon-js.esm.mjs +26 -2
- package/dist/socket.d.ts +15 -2
- package/package.json +1 -1
- package/socket.ts +56 -2
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
@@ -7050,6 +7050,10 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7050
7050
|
this.onmessagebuttonclicked(
|
7051
7051
|
message.message_button_clicked
|
7052
7052
|
);
|
7053
|
+
} else if (message.dropdown_box_selected) {
|
7054
|
+
this.onmessagedropdownboxselected(
|
7055
|
+
message.dropdown_box_selected
|
7056
|
+
);
|
7053
7057
|
} else if (message.webrtc_signaling_fwd) {
|
7054
7058
|
this.onwebrtcsignalingfwd(
|
7055
7059
|
message.webrtc_signaling_fwd
|
@@ -7342,6 +7346,11 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7342
7346
|
console.log(messageButtonClicked);
|
7343
7347
|
}
|
7344
7348
|
}
|
7349
|
+
onmessagedropdownboxselected(msg) {
|
7350
|
+
if (this.verbose && window && window.console) {
|
7351
|
+
console.log(msg);
|
7352
|
+
}
|
7353
|
+
}
|
7345
7354
|
onwebrtcsignalingfwd(event) {
|
7346
7355
|
if (this.verbose && window && window.console) {
|
7347
7356
|
console.log(event);
|
@@ -7622,6 +7631,21 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7622
7631
|
return response.webrtc_signaling_fwd;
|
7623
7632
|
});
|
7624
7633
|
}
|
7634
|
+
handleDropdownBoxSelected(message_id, channel_id, selectbox_id, sender_id, user_id, value) {
|
7635
|
+
return __async(this, null, function* () {
|
7636
|
+
const response = yield this.send({
|
7637
|
+
message_button_clicked: {
|
7638
|
+
message_id,
|
7639
|
+
channel_id,
|
7640
|
+
selectbox_id,
|
7641
|
+
sender_id,
|
7642
|
+
user_id,
|
7643
|
+
value
|
7644
|
+
}
|
7645
|
+
});
|
7646
|
+
return response.dropdown_box_selected;
|
7647
|
+
});
|
7648
|
+
}
|
7625
7649
|
handleMessageButtonClick(message_id, channel_id, button_id, sender_id, user_id) {
|
7626
7650
|
return __async(this, null, function* () {
|
7627
7651
|
const response = yield this.send({
|
@@ -10161,12 +10185,12 @@ var Client = class {
|
|
10161
10185
|
});
|
10162
10186
|
}
|
10163
10187
|
//**update onboarding step by id */
|
10164
|
-
updateOnboardingStepByClanId(session,
|
10188
|
+
updateOnboardingStepByClanId(session, clan_id, request) {
|
10165
10189
|
return __async(this, null, function* () {
|
10166
10190
|
if (this.autoRefreshSession && session.refresh_token && session.isexpired((Date.now() + this.expiredTimespanMs) / 1e3)) {
|
10167
10191
|
yield this.sessionRefresh(session);
|
10168
10192
|
}
|
10169
|
-
return this.apiClient.updateOnboardingStepByClanId(session.token,
|
10193
|
+
return this.apiClient.updateOnboardingStepByClanId(session.token, clan_id, request).then((response) => {
|
10170
10194
|
return response !== void 0;
|
10171
10195
|
});
|
10172
10196
|
});
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -7020,6 +7020,10 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7020
7020
|
this.onmessagebuttonclicked(
|
7021
7021
|
message.message_button_clicked
|
7022
7022
|
);
|
7023
|
+
} else if (message.dropdown_box_selected) {
|
7024
|
+
this.onmessagedropdownboxselected(
|
7025
|
+
message.dropdown_box_selected
|
7026
|
+
);
|
7023
7027
|
} else if (message.webrtc_signaling_fwd) {
|
7024
7028
|
this.onwebrtcsignalingfwd(
|
7025
7029
|
message.webrtc_signaling_fwd
|
@@ -7312,6 +7316,11 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7312
7316
|
console.log(messageButtonClicked);
|
7313
7317
|
}
|
7314
7318
|
}
|
7319
|
+
onmessagedropdownboxselected(msg) {
|
7320
|
+
if (this.verbose && window && window.console) {
|
7321
|
+
console.log(msg);
|
7322
|
+
}
|
7323
|
+
}
|
7315
7324
|
onwebrtcsignalingfwd(event) {
|
7316
7325
|
if (this.verbose && window && window.console) {
|
7317
7326
|
console.log(event);
|
@@ -7592,6 +7601,21 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7592
7601
|
return response.webrtc_signaling_fwd;
|
7593
7602
|
});
|
7594
7603
|
}
|
7604
|
+
handleDropdownBoxSelected(message_id, channel_id, selectbox_id, sender_id, user_id, value) {
|
7605
|
+
return __async(this, null, function* () {
|
7606
|
+
const response = yield this.send({
|
7607
|
+
message_button_clicked: {
|
7608
|
+
message_id,
|
7609
|
+
channel_id,
|
7610
|
+
selectbox_id,
|
7611
|
+
sender_id,
|
7612
|
+
user_id,
|
7613
|
+
value
|
7614
|
+
}
|
7615
|
+
});
|
7616
|
+
return response.dropdown_box_selected;
|
7617
|
+
});
|
7618
|
+
}
|
7595
7619
|
handleMessageButtonClick(message_id, channel_id, button_id, sender_id, user_id) {
|
7596
7620
|
return __async(this, null, function* () {
|
7597
7621
|
const response = yield this.send({
|
@@ -10131,12 +10155,12 @@ var Client = class {
|
|
10131
10155
|
});
|
10132
10156
|
}
|
10133
10157
|
//**update onboarding step by id */
|
10134
|
-
updateOnboardingStepByClanId(session,
|
10158
|
+
updateOnboardingStepByClanId(session, clan_id, request) {
|
10135
10159
|
return __async(this, null, function* () {
|
10136
10160
|
if (this.autoRefreshSession && session.refresh_token && session.isexpired((Date.now() + this.expiredTimespanMs) / 1e3)) {
|
10137
10161
|
yield this.sessionRefresh(session);
|
10138
10162
|
}
|
10139
|
-
return this.apiClient.updateOnboardingStepByClanId(session.token,
|
10163
|
+
return this.apiClient.updateOnboardingStepByClanId(session.token, clan_id, request).then((response) => {
|
10140
10164
|
return response !== void 0;
|
10141
10165
|
});
|
10142
10166
|
});
|
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 {
|
@@ -577,6 +578,14 @@ export interface PermissionChangedEvent {
|
|
577
578
|
user_id: string;
|
578
579
|
channel_id: string;
|
579
580
|
}
|
581
|
+
export interface DropdownBoxSelected {
|
582
|
+
message_id: string;
|
583
|
+
channel_id: string;
|
584
|
+
selectbox_id: string;
|
585
|
+
sender_id: string;
|
586
|
+
user_id: string;
|
587
|
+
value: Array<string>;
|
588
|
+
}
|
580
589
|
export interface MessageButtonClicked {
|
581
590
|
message_id: string;
|
582
591
|
channel_id: string;
|
@@ -713,8 +722,10 @@ export interface Socket {
|
|
713
722
|
getHeartbeatTimeoutMs(): number;
|
714
723
|
checkDuplicateName(name: string, condition_id: string, type: number): Promise<CheckNameExistedEvent>;
|
715
724
|
handleMessageButtonClick: (message_id: string, channel_id: string, button_id: string, sender_id: string, user_id: string) => Promise<MessageButtonClicked>;
|
716
|
-
|
725
|
+
handleDropdownBoxSelected: (message_id: string, channel_id: string, selectbox_id: string, sender_id: string, user_id: string, value: Array<string>) => Promise<DropdownBoxSelected>;
|
717
726
|
forwardWebrtcSignaling: (receiverId: string, dataType: number, jsonData: string, channelId: string, caller_id: string) => Promise<WebrtcSignalingFwd>;
|
727
|
+
onmessagebuttonclicked: (event: MessageButtonClicked) => void;
|
728
|
+
onmessagedropdownboxselected: (event: DropdownBoxSelected) => void;
|
718
729
|
onwebrtcsignalingfwd: (event: WebrtcSignalingFwd) => void;
|
719
730
|
oneventcreated: (clan_event_created: ApiCreateEventRequest) => void;
|
720
731
|
oncoffeegiven: (give_coffee_event: ApiGiveCoffeeEvent) => void;
|
@@ -806,11 +817,12 @@ export declare class DefaultSocket implements Socket {
|
|
806
817
|
onunmuteevent(unmute_event: UnmuteEvent): void;
|
807
818
|
ontokensent(tokenSentEvent: ApiTokenSentEvent): void;
|
808
819
|
onmessagebuttonclicked(messageButtonClicked: MessageButtonClicked): void;
|
820
|
+
onmessagedropdownboxselected(msg: DropdownBoxSelected): void;
|
809
821
|
onwebrtcsignalingfwd(event: WebrtcSignalingFwd): void;
|
810
822
|
onactivityupdated(list_activity: ListActivity): void;
|
811
823
|
onjoinpttchannel(join_ptt_channel: JoinPTTChannel): void;
|
812
824
|
ontalkpttchannel(talk_ptt_channel: TalkPTTChannel): void;
|
813
|
-
send(message: ChannelJoin | ChannelLeave | ChannelMessageSend | ChannelMessageUpdate | CustomStatusEvent | ChannelMessageRemove | MessageTypingEvent | LastSeenMessageEvent | Rpc | StatusFollow | StatusUnfollow | StatusUpdate | Ping | WebrtcSignalingFwd | MessageButtonClicked | JoinPTTChannel | TalkPTTChannel, sendTimeout?: number): Promise<any>;
|
825
|
+
send(message: ChannelJoin | ChannelLeave | ChannelMessageSend | ChannelMessageUpdate | CustomStatusEvent | ChannelMessageRemove | MessageTypingEvent | LastSeenMessageEvent | Rpc | StatusFollow | StatusUnfollow | StatusUpdate | Ping | WebrtcSignalingFwd | MessageButtonClicked | DropdownBoxSelected | JoinPTTChannel | TalkPTTChannel, sendTimeout?: number): Promise<any>;
|
814
826
|
followUsers(userIds: string[]): Promise<Status>;
|
815
827
|
joinClanChat(clan_id: string): Promise<ClanJoin>;
|
816
828
|
joinChat(clan_id: string, channel_id: string, channel_type: number, is_public: boolean): Promise<Channel>;
|
@@ -830,6 +842,7 @@ export declare class DefaultSocket implements Socket {
|
|
830
842
|
writeCustomStatus(clan_id: string, status: string): Promise<CustomStatusEvent>;
|
831
843
|
checkDuplicateName(name: string, condition_id: string, type: number): Promise<CheckNameExistedEvent>;
|
832
844
|
forwardWebrtcSignaling(receiver_id: string, data_type: number, json_data: string, channel_id: string, caller_id: string): Promise<WebrtcSignalingFwd>;
|
845
|
+
handleDropdownBoxSelected(message_id: string, channel_id: string, selectbox_id: string, sender_id: string, user_id: string, value: Array<string>): Promise<DropdownBoxSelected>;
|
833
846
|
handleMessageButtonClick(message_id: string, channel_id: string, button_id: string, sender_id: string, user_id: string): Promise<MessageButtonClicked>;
|
834
847
|
joinPTTChannel(channelId: string, dataType: number, jsonData: string): Promise<JoinPTTChannel>;
|
835
848
|
talkPTTChannel(channelId: string, dataType: number, jsonData: string, state: number): Promise<TalkPTTChannel>;
|
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. */
|
@@ -820,6 +822,15 @@ export interface PermissionChangedEvent {
|
|
820
822
|
channel_id: string;
|
821
823
|
}
|
822
824
|
|
825
|
+
export interface DropdownBoxSelected {
|
826
|
+
message_id: string;
|
827
|
+
channel_id: string;
|
828
|
+
selectbox_id: string;
|
829
|
+
sender_id: string;
|
830
|
+
user_id: string;
|
831
|
+
value: Array<string>;
|
832
|
+
}
|
833
|
+
|
823
834
|
export interface MessageButtonClicked {
|
824
835
|
message_id: string;
|
825
836
|
channel_id: string;
|
@@ -1150,7 +1161,14 @@ export interface Socket {
|
|
1150
1161
|
user_id: string
|
1151
1162
|
) => Promise<MessageButtonClicked>;
|
1152
1163
|
|
1153
|
-
|
1164
|
+
handleDropdownBoxSelected: (
|
1165
|
+
message_id: string,
|
1166
|
+
channel_id: string,
|
1167
|
+
selectbox_id: string,
|
1168
|
+
sender_id: string,
|
1169
|
+
user_id: string,
|
1170
|
+
value: Array<string>
|
1171
|
+
) => Promise<DropdownBoxSelected>;
|
1154
1172
|
|
1155
1173
|
forwardWebrtcSignaling: (
|
1156
1174
|
receiverId: string,
|
@@ -1160,6 +1178,10 @@ export interface Socket {
|
|
1160
1178
|
caller_id: string
|
1161
1179
|
) => Promise<WebrtcSignalingFwd>;
|
1162
1180
|
|
1181
|
+
onmessagebuttonclicked: (event: MessageButtonClicked) => void;
|
1182
|
+
|
1183
|
+
onmessagedropdownboxselected: (event: DropdownBoxSelected) => void;
|
1184
|
+
|
1163
1185
|
onwebrtcsignalingfwd: (event: WebrtcSignalingFwd) => void;
|
1164
1186
|
|
1165
1187
|
oneventcreated: (clan_event_created: ApiCreateEventRequest) => void;
|
@@ -1453,6 +1475,10 @@ export class DefaultSocket implements Socket {
|
|
1453
1475
|
this.onmessagebuttonclicked(
|
1454
1476
|
<MessageButtonClicked>message.message_button_clicked
|
1455
1477
|
);
|
1478
|
+
} else if (message.dropdown_box_selected) {
|
1479
|
+
this.onmessagedropdownboxselected(
|
1480
|
+
<DropdownBoxSelected>message.dropdown_box_selected
|
1481
|
+
);
|
1456
1482
|
} else if (message.webrtc_signaling_fwd) {
|
1457
1483
|
this.onwebrtcsignalingfwd(
|
1458
1484
|
<WebrtcSignalingFwd>message.webrtc_signaling_fwd
|
@@ -1800,6 +1826,12 @@ export class DefaultSocket implements Socket {
|
|
1800
1826
|
}
|
1801
1827
|
}
|
1802
1828
|
|
1829
|
+
onmessagedropdownboxselected(msg: DropdownBoxSelected) {
|
1830
|
+
if (this.verbose && window && window.console) {
|
1831
|
+
console.log(msg);
|
1832
|
+
}
|
1833
|
+
}
|
1834
|
+
|
1803
1835
|
onwebrtcsignalingfwd(event: WebrtcSignalingFwd) {
|
1804
1836
|
if (this.verbose && window && window.console) {
|
1805
1837
|
console.log(event);
|
@@ -1840,6 +1872,7 @@ export class DefaultSocket implements Socket {
|
|
1840
1872
|
| Ping
|
1841
1873
|
| WebrtcSignalingFwd
|
1842
1874
|
| MessageButtonClicked
|
1875
|
+
| DropdownBoxSelected
|
1843
1876
|
| JoinPTTChannel
|
1844
1877
|
| TalkPTTChannel,
|
1845
1878
|
sendTimeout = DefaultSocket.DefaultSendTimeoutMs
|
@@ -2194,6 +2227,27 @@ export class DefaultSocket implements Socket {
|
|
2194
2227
|
return response.webrtc_signaling_fwd;
|
2195
2228
|
}
|
2196
2229
|
|
2230
|
+
async handleDropdownBoxSelected(
|
2231
|
+
message_id: string,
|
2232
|
+
channel_id: string,
|
2233
|
+
selectbox_id: string,
|
2234
|
+
sender_id: string,
|
2235
|
+
user_id: string,
|
2236
|
+
value: Array<string>
|
2237
|
+
): Promise<DropdownBoxSelected> {
|
2238
|
+
const response = await this.send({
|
2239
|
+
message_button_clicked: {
|
2240
|
+
message_id: message_id,
|
2241
|
+
channel_id: channel_id,
|
2242
|
+
selectbox_id: selectbox_id,
|
2243
|
+
sender_id: sender_id,
|
2244
|
+
user_id: user_id,
|
2245
|
+
value: value,
|
2246
|
+
},
|
2247
|
+
});
|
2248
|
+
return response.dropdown_box_selected;
|
2249
|
+
}
|
2250
|
+
|
2197
2251
|
async handleMessageButtonClick(
|
2198
2252
|
message_id: string,
|
2199
2253
|
channel_id: string,
|