mezon-js 2.13.64 → 2.13.65
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 +3 -2
- package/dist/mezon-js.esm.mjs +3 -2
- package/dist/socket.d.ts +3 -2
- package/package.json +1 -1
- package/socket.ts +6 -2
package/dist/mezon-js.cjs.js
CHANGED
|
@@ -8433,13 +8433,14 @@ var _DefaultSocket = class _DefaultSocket {
|
|
|
8433
8433
|
return response.active_archived_thread;
|
|
8434
8434
|
});
|
|
8435
8435
|
}
|
|
8436
|
-
checkDuplicateName(name, condition_id, type) {
|
|
8436
|
+
checkDuplicateName(name, condition_id, type, clan_id) {
|
|
8437
8437
|
return __async(this, null, function* () {
|
|
8438
8438
|
const response = yield this.send({
|
|
8439
8439
|
check_name_existed_event: {
|
|
8440
8440
|
name,
|
|
8441
8441
|
condition_id,
|
|
8442
|
-
type
|
|
8442
|
+
type,
|
|
8443
|
+
clan_id
|
|
8443
8444
|
}
|
|
8444
8445
|
});
|
|
8445
8446
|
return response.check_name_existed_event;
|
package/dist/mezon-js.esm.mjs
CHANGED
|
@@ -8398,13 +8398,14 @@ var _DefaultSocket = class _DefaultSocket {
|
|
|
8398
8398
|
return response.active_archived_thread;
|
|
8399
8399
|
});
|
|
8400
8400
|
}
|
|
8401
|
-
checkDuplicateName(name, condition_id, type) {
|
|
8401
|
+
checkDuplicateName(name, condition_id, type, clan_id) {
|
|
8402
8402
|
return __async(this, null, function* () {
|
|
8403
8403
|
const response = yield this.send({
|
|
8404
8404
|
check_name_existed_event: {
|
|
8405
8405
|
name,
|
|
8406
8406
|
condition_id,
|
|
8407
|
-
type
|
|
8407
|
+
type,
|
|
8408
|
+
clan_id
|
|
8408
8409
|
}
|
|
8409
8410
|
});
|
|
8410
8411
|
return response.check_name_existed_event;
|
package/dist/socket.d.ts
CHANGED
|
@@ -573,6 +573,7 @@ export interface CheckNameExistedEvent {
|
|
|
573
573
|
exist: boolean;
|
|
574
574
|
condition_id: string;
|
|
575
575
|
type: number;
|
|
576
|
+
clan_id: string;
|
|
576
577
|
}
|
|
577
578
|
/** */
|
|
578
579
|
export interface ClanSticker {
|
|
@@ -966,7 +967,7 @@ export interface Socket {
|
|
|
966
967
|
setHeartbeatTimeoutMs(ms: number): void;
|
|
967
968
|
getHeartbeatTimeoutMs(): number;
|
|
968
969
|
onreconnect: (evt: Event) => void;
|
|
969
|
-
checkDuplicateName(name: string, condition_id: string, type: number): Promise<CheckNameExistedEvent>;
|
|
970
|
+
checkDuplicateName(name: string, condition_id: string, type: number, clan_id: string): Promise<CheckNameExistedEvent>;
|
|
970
971
|
handleMessageButtonClick: (message_id: string, channel_id: string, button_id: string, sender_id: string, user_id: string, extra_data: string) => Promise<MessageButtonClicked>;
|
|
971
972
|
handleDropdownBoxSelected: (message_id: string, channel_id: string, selectbox_id: string, sender_id: string, user_id: string, value: Array<string>) => Promise<DropdownBoxSelected>;
|
|
972
973
|
writeVoiceReaction: (emojis: Array<string>, channel_id: string) => Promise<VoiceReactionSend>;
|
|
@@ -1196,7 +1197,7 @@ export declare class DefaultSocket implements Socket {
|
|
|
1196
1197
|
writeLastPinMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, timestamp_seconds: number, operation: number, message_sender_avatar: string, message_sender_id: string, message_sender_username: string, message_content: string, message_attachment: string, message_created_time: string): Promise<LastPinMessageEvent>;
|
|
1197
1198
|
writeCustomStatus(clan_id: string, status: string, time_reset: number, no_clear: boolean): Promise<CustomStatusEvent>;
|
|
1198
1199
|
writeActiveArchivedThread(clan_id: string, channel_id: string): Promise<void>;
|
|
1199
|
-
checkDuplicateName(name: string, condition_id: string, type: number): Promise<CheckNameExistedEvent>;
|
|
1200
|
+
checkDuplicateName(name: string, condition_id: string, type: number, clan_id: string): Promise<CheckNameExistedEvent>;
|
|
1200
1201
|
writeVoiceReaction(emojis: Array<string>, channel_id: string): Promise<VoiceReactionSend>;
|
|
1201
1202
|
forwardWebrtcSignaling(receiver_id: string, data_type: number, json_data: string, channel_id: string, caller_id: string): Promise<WebrtcSignalingFwd>;
|
|
1202
1203
|
makeCallPush(receiver_id: string, json_data: string, channel_id: string, caller_id: string): Promise<IncomingCallPush>;
|
package/package.json
CHANGED
package/socket.ts
CHANGED
|
@@ -876,6 +876,7 @@ export interface CheckNameExistedEvent {
|
|
|
876
876
|
exist: boolean;
|
|
877
877
|
condition_id: string;
|
|
878
878
|
type: number;
|
|
879
|
+
clan_id: string;
|
|
879
880
|
}
|
|
880
881
|
|
|
881
882
|
/** */
|
|
@@ -1616,7 +1617,8 @@ export interface Socket {
|
|
|
1616
1617
|
checkDuplicateName(
|
|
1617
1618
|
name: string,
|
|
1618
1619
|
condition_id: string,
|
|
1619
|
-
type: number
|
|
1620
|
+
type: number,
|
|
1621
|
+
clan_id: string,
|
|
1620
1622
|
): Promise<CheckNameExistedEvent>;
|
|
1621
1623
|
|
|
1622
1624
|
handleMessageButtonClick: (
|
|
@@ -3127,13 +3129,15 @@ export class DefaultSocket implements Socket {
|
|
|
3127
3129
|
async checkDuplicateName(
|
|
3128
3130
|
name: string,
|
|
3129
3131
|
condition_id: string,
|
|
3130
|
-
type: number
|
|
3132
|
+
type: number,
|
|
3133
|
+
clan_id: string,
|
|
3131
3134
|
): Promise<CheckNameExistedEvent> {
|
|
3132
3135
|
const response = await this.send({
|
|
3133
3136
|
check_name_existed_event: {
|
|
3134
3137
|
name: name,
|
|
3135
3138
|
condition_id: condition_id,
|
|
3136
3139
|
type: type,
|
|
3140
|
+
clan_id: clan_id
|
|
3137
3141
|
},
|
|
3138
3142
|
});
|
|
3139
3143
|
return response.check_name_existed_event;
|