mezon-js 2.13.63 → 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 +4 -2
- package/package.json +1 -1
- package/socket.ts +8 -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
|
@@ -478,6 +478,7 @@ export interface ClanUpdatedEvent {
|
|
|
478
478
|
welcome_channel_id: string;
|
|
479
479
|
onboarding_banner: string;
|
|
480
480
|
about: string;
|
|
481
|
+
prevent_anonymous: boolean;
|
|
481
482
|
}
|
|
482
483
|
export interface ClanProfileUpdatedEvent {
|
|
483
484
|
user_id: string;
|
|
@@ -572,6 +573,7 @@ export interface CheckNameExistedEvent {
|
|
|
572
573
|
exist: boolean;
|
|
573
574
|
condition_id: string;
|
|
574
575
|
type: number;
|
|
576
|
+
clan_id: string;
|
|
575
577
|
}
|
|
576
578
|
/** */
|
|
577
579
|
export interface ClanSticker {
|
|
@@ -965,7 +967,7 @@ export interface Socket {
|
|
|
965
967
|
setHeartbeatTimeoutMs(ms: number): void;
|
|
966
968
|
getHeartbeatTimeoutMs(): number;
|
|
967
969
|
onreconnect: (evt: Event) => void;
|
|
968
|
-
checkDuplicateName(name: string, condition_id: string, type: number): Promise<CheckNameExistedEvent>;
|
|
970
|
+
checkDuplicateName(name: string, condition_id: string, type: number, clan_id: string): Promise<CheckNameExistedEvent>;
|
|
969
971
|
handleMessageButtonClick: (message_id: string, channel_id: string, button_id: string, sender_id: string, user_id: string, extra_data: string) => Promise<MessageButtonClicked>;
|
|
970
972
|
handleDropdownBoxSelected: (message_id: string, channel_id: string, selectbox_id: string, sender_id: string, user_id: string, value: Array<string>) => Promise<DropdownBoxSelected>;
|
|
971
973
|
writeVoiceReaction: (emojis: Array<string>, channel_id: string) => Promise<VoiceReactionSend>;
|
|
@@ -1195,7 +1197,7 @@ export declare class DefaultSocket implements Socket {
|
|
|
1195
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>;
|
|
1196
1198
|
writeCustomStatus(clan_id: string, status: string, time_reset: number, no_clear: boolean): Promise<CustomStatusEvent>;
|
|
1197
1199
|
writeActiveArchivedThread(clan_id: string, channel_id: string): Promise<void>;
|
|
1198
|
-
checkDuplicateName(name: string, condition_id: string, type: number): Promise<CheckNameExistedEvent>;
|
|
1200
|
+
checkDuplicateName(name: string, condition_id: string, type: number, clan_id: string): Promise<CheckNameExistedEvent>;
|
|
1199
1201
|
writeVoiceReaction(emojis: Array<string>, channel_id: string): Promise<VoiceReactionSend>;
|
|
1200
1202
|
forwardWebrtcSignaling(receiver_id: string, data_type: number, json_data: string, channel_id: string, caller_id: string): Promise<WebrtcSignalingFwd>;
|
|
1201
1203
|
makeCallPush(receiver_id: string, json_data: string, channel_id: string, caller_id: string): Promise<IncomingCallPush>;
|
package/package.json
CHANGED
package/socket.ts
CHANGED
|
@@ -770,6 +770,8 @@ export interface ClanUpdatedEvent {
|
|
|
770
770
|
onboarding_banner: string;
|
|
771
771
|
// about
|
|
772
772
|
about: string;
|
|
773
|
+
// prevent anonymous
|
|
774
|
+
prevent_anonymous: boolean;
|
|
773
775
|
}
|
|
774
776
|
|
|
775
777
|
export interface ClanProfileUpdatedEvent {
|
|
@@ -874,6 +876,7 @@ export interface CheckNameExistedEvent {
|
|
|
874
876
|
exist: boolean;
|
|
875
877
|
condition_id: string;
|
|
876
878
|
type: number;
|
|
879
|
+
clan_id: string;
|
|
877
880
|
}
|
|
878
881
|
|
|
879
882
|
/** */
|
|
@@ -1614,7 +1617,8 @@ export interface Socket {
|
|
|
1614
1617
|
checkDuplicateName(
|
|
1615
1618
|
name: string,
|
|
1616
1619
|
condition_id: string,
|
|
1617
|
-
type: number
|
|
1620
|
+
type: number,
|
|
1621
|
+
clan_id: string,
|
|
1618
1622
|
): Promise<CheckNameExistedEvent>;
|
|
1619
1623
|
|
|
1620
1624
|
handleMessageButtonClick: (
|
|
@@ -3125,13 +3129,15 @@ export class DefaultSocket implements Socket {
|
|
|
3125
3129
|
async checkDuplicateName(
|
|
3126
3130
|
name: string,
|
|
3127
3131
|
condition_id: string,
|
|
3128
|
-
type: number
|
|
3132
|
+
type: number,
|
|
3133
|
+
clan_id: string,
|
|
3129
3134
|
): Promise<CheckNameExistedEvent> {
|
|
3130
3135
|
const response = await this.send({
|
|
3131
3136
|
check_name_existed_event: {
|
|
3132
3137
|
name: name,
|
|
3133
3138
|
condition_id: condition_id,
|
|
3134
3139
|
type: type,
|
|
3140
|
+
clan_id: clan_id
|
|
3135
3141
|
},
|
|
3136
3142
|
});
|
|
3137
3143
|
return response.check_name_existed_event;
|