mezon-js 2.13.49 → 2.13.50
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 +11 -0
- package/dist/mezon-js.esm.mjs +11 -0
- package/dist/socket.d.ts +2 -0
- package/package.json +1 -1
- package/socket.ts +18 -0
package/dist/mezon-js.cjs.js
CHANGED
|
@@ -8367,6 +8367,17 @@ var _DefaultSocket = class _DefaultSocket {
|
|
|
8367
8367
|
return response.custom_status_event;
|
|
8368
8368
|
});
|
|
8369
8369
|
}
|
|
8370
|
+
writeActiveArchivedThreadDM(clan_id, channel_id) {
|
|
8371
|
+
return __async(this, null, function* () {
|
|
8372
|
+
const response = yield this.send({
|
|
8373
|
+
active_archived_thread_dm: {
|
|
8374
|
+
clan_id,
|
|
8375
|
+
channel_id
|
|
8376
|
+
}
|
|
8377
|
+
});
|
|
8378
|
+
return response.active_archived_thread_dm;
|
|
8379
|
+
});
|
|
8380
|
+
}
|
|
8370
8381
|
checkDuplicateName(name, condition_id, type) {
|
|
8371
8382
|
return __async(this, null, function* () {
|
|
8372
8383
|
const response = yield this.send({
|
package/dist/mezon-js.esm.mjs
CHANGED
|
@@ -8333,6 +8333,17 @@ var _DefaultSocket = class _DefaultSocket {
|
|
|
8333
8333
|
return response.custom_status_event;
|
|
8334
8334
|
});
|
|
8335
8335
|
}
|
|
8336
|
+
writeActiveArchivedThreadDM(clan_id, channel_id) {
|
|
8337
|
+
return __async(this, null, function* () {
|
|
8338
|
+
const response = yield this.send({
|
|
8339
|
+
active_archived_thread_dm: {
|
|
8340
|
+
clan_id,
|
|
8341
|
+
channel_id
|
|
8342
|
+
}
|
|
8343
|
+
});
|
|
8344
|
+
return response.active_archived_thread_dm;
|
|
8345
|
+
});
|
|
8346
|
+
}
|
|
8336
8347
|
checkDuplicateName(name, condition_id, type) {
|
|
8337
8348
|
return __async(this, null, function* () {
|
|
8338
8349
|
const response = yield this.send({
|
package/dist/socket.d.ts
CHANGED
|
@@ -961,6 +961,7 @@ export interface Socket {
|
|
|
961
961
|
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>;
|
|
962
962
|
/** Send custom user status */
|
|
963
963
|
writeCustomStatus(clan_id: string, status: string, time_reset: number, no_clear: boolean): Promise<CustomStatusEvent>;
|
|
964
|
+
writeActiveArchivedThreadDM(clan_id: string, channel_id: string): Promise<void>;
|
|
964
965
|
setHeartbeatTimeoutMs(ms: number): void;
|
|
965
966
|
getHeartbeatTimeoutMs(): number;
|
|
966
967
|
checkDuplicateName(name: string, condition_id: string, type: number): Promise<CheckNameExistedEvent>;
|
|
@@ -1180,6 +1181,7 @@ export declare class DefaultSocket implements Socket {
|
|
|
1180
1181
|
writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp_seconds: number, badge_count: number): Promise<LastSeenMessageEvent>;
|
|
1181
1182
|
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>;
|
|
1182
1183
|
writeCustomStatus(clan_id: string, status: string, time_reset: number, no_clear: boolean): Promise<CustomStatusEvent>;
|
|
1184
|
+
writeActiveArchivedThreadDM(clan_id: string, channel_id: string): Promise<void>;
|
|
1183
1185
|
checkDuplicateName(name: string, condition_id: string, type: number): Promise<CheckNameExistedEvent>;
|
|
1184
1186
|
writeVoiceReaction(emojis: Array<string>, channel_id: string): Promise<VoiceReactionSend>;
|
|
1185
1187
|
forwardWebrtcSignaling(receiver_id: string, data_type: number, json_data: string, channel_id: string, caller_id: string): Promise<WebrtcSignalingFwd>;
|
package/package.json
CHANGED
package/socket.ts
CHANGED
|
@@ -1598,6 +1598,11 @@ export interface Socket {
|
|
|
1598
1598
|
no_clear: boolean
|
|
1599
1599
|
): Promise<CustomStatusEvent>;
|
|
1600
1600
|
|
|
1601
|
+
writeActiveArchivedThreadDM(
|
|
1602
|
+
clan_id: string,
|
|
1603
|
+
channel_id: string
|
|
1604
|
+
): Promise<void>;
|
|
1605
|
+
|
|
1601
1606
|
/* Set the heartbeat timeout used by the socket to detect if it has lost connectivity to the server. */
|
|
1602
1607
|
setHeartbeatTimeoutMs(ms: number): void;
|
|
1603
1608
|
|
|
@@ -3036,6 +3041,19 @@ export class DefaultSocket implements Socket {
|
|
|
3036
3041
|
return response.custom_status_event;
|
|
3037
3042
|
}
|
|
3038
3043
|
|
|
3044
|
+
async writeActiveArchivedThreadDM(
|
|
3045
|
+
clan_id: string,
|
|
3046
|
+
channel_id: string
|
|
3047
|
+
): Promise<void> {
|
|
3048
|
+
const response = await this.send({
|
|
3049
|
+
active_archived_thread_dm: {
|
|
3050
|
+
clan_id: clan_id,
|
|
3051
|
+
channel_id: channel_id
|
|
3052
|
+
},
|
|
3053
|
+
});
|
|
3054
|
+
return response.active_archived_thread_dm;
|
|
3055
|
+
}
|
|
3056
|
+
|
|
3039
3057
|
async checkDuplicateName(
|
|
3040
3058
|
name: string,
|
|
3041
3059
|
condition_id: string,
|