mezon-js 2.12.41 → 2.12.43
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 +8 -2
- package/dist/mezon-js.esm.mjs +8 -2
- package/dist/socket.d.ts +8 -2
- package/package.json +1 -1
- package/socket.ts +44 -2
package/dist/mezon-js.cjs.js
CHANGED
@@ -7875,7 +7875,7 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7875
7875
|
return response.last_seen_message_event;
|
7876
7876
|
});
|
7877
7877
|
}
|
7878
|
-
writeLastPinMessage(clan_id, channel_id, mode, is_public, message_id, timestamp_seconds, operation) {
|
7878
|
+
writeLastPinMessage(clan_id, channel_id, mode, is_public, message_id, timestamp_seconds, operation, message_sender_avatar, message_sender_id, message_sender_username, message_content, message_attachment, message_created_time) {
|
7879
7879
|
return __async(this, null, function* () {
|
7880
7880
|
const response = yield this.send({
|
7881
7881
|
last_pin_message_event: {
|
@@ -7885,7 +7885,13 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7885
7885
|
is_public,
|
7886
7886
|
message_id,
|
7887
7887
|
timestamp_seconds,
|
7888
|
-
operation
|
7888
|
+
operation,
|
7889
|
+
message_sender_avatar,
|
7890
|
+
message_sender_id,
|
7891
|
+
message_sender_username,
|
7892
|
+
message_content,
|
7893
|
+
message_attachment,
|
7894
|
+
message_created_time
|
7889
7895
|
}
|
7890
7896
|
});
|
7891
7897
|
return response.last_pin_message_event;
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -7841,7 +7841,7 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7841
7841
|
return response.last_seen_message_event;
|
7842
7842
|
});
|
7843
7843
|
}
|
7844
|
-
writeLastPinMessage(clan_id, channel_id, mode, is_public, message_id, timestamp_seconds, operation) {
|
7844
|
+
writeLastPinMessage(clan_id, channel_id, mode, is_public, message_id, timestamp_seconds, operation, message_sender_avatar, message_sender_id, message_sender_username, message_content, message_attachment, message_created_time) {
|
7845
7845
|
return __async(this, null, function* () {
|
7846
7846
|
const response = yield this.send({
|
7847
7847
|
last_pin_message_event: {
|
@@ -7851,7 +7851,13 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7851
7851
|
is_public,
|
7852
7852
|
message_id,
|
7853
7853
|
timestamp_seconds,
|
7854
|
-
operation
|
7854
|
+
operation,
|
7855
|
+
message_sender_avatar,
|
7856
|
+
message_sender_id,
|
7857
|
+
message_sender_username,
|
7858
|
+
message_content,
|
7859
|
+
message_attachment,
|
7860
|
+
message_created_time
|
7855
7861
|
}
|
7856
7862
|
});
|
7857
7863
|
return response.last_pin_message_event;
|
package/dist/socket.d.ts
CHANGED
@@ -159,6 +159,12 @@ export interface LastPinMessageEvent {
|
|
159
159
|
operation: number;
|
160
160
|
is_public: boolean;
|
161
161
|
clan_id: string;
|
162
|
+
message_sender_avatar: string;
|
163
|
+
message_sender_id: string;
|
164
|
+
message_sender_username: string;
|
165
|
+
message_content: string;
|
166
|
+
message_attachment: string;
|
167
|
+
message_created_time: string;
|
162
168
|
}
|
163
169
|
export interface UnmuteEvent {
|
164
170
|
channel_id: string;
|
@@ -881,7 +887,7 @@ export interface Socket {
|
|
881
887
|
/** Send last seen message */
|
882
888
|
writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp_seconds: number, badge_count: number): Promise<LastSeenMessageEvent>;
|
883
889
|
/** Send last pin message */
|
884
|
-
writeLastPinMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, timestamp_seconds: number, operation: number): Promise<LastPinMessageEvent>;
|
890
|
+
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>;
|
885
891
|
/** Send custom user status */
|
886
892
|
writeCustomStatus(clan_id: string, status: string, time_reset: number, no_clear: boolean): Promise<CustomStatusEvent>;
|
887
893
|
setHeartbeatTimeoutMs(ms: number): void;
|
@@ -1088,7 +1094,7 @@ export declare class DefaultSocket implements Socket {
|
|
1088
1094
|
writeMessageReaction(id: string, clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, emoji_id: string, emoji: string, count: number, message_sender_id: string, action_delete: boolean, topic_id?: string, emoji_recent_id?: string): Promise<ApiMessageReaction>;
|
1089
1095
|
writeMessageTyping(clan_id: string, channel_id: string, mode: number, is_public: boolean, sender_display_name: string): Promise<MessageTypingEvent>;
|
1090
1096
|
writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp_seconds: number, badge_count: number): Promise<LastSeenMessageEvent>;
|
1091
|
-
writeLastPinMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, timestamp_seconds: number, operation: number): Promise<LastPinMessageEvent>;
|
1097
|
+
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>;
|
1092
1098
|
writeCustomStatus(clan_id: string, status: string, time_reset: number, no_clear: boolean): Promise<CustomStatusEvent>;
|
1093
1099
|
checkDuplicateName(name: string, condition_id: string, type: number): Promise<CheckNameExistedEvent>;
|
1094
1100
|
writeVoiceReaction(emojis: Array<string>, channel_id: string): Promise<VoiceReactionSend>;
|
package/package.json
CHANGED
package/socket.ts
CHANGED
@@ -262,6 +262,18 @@ export interface LastPinMessageEvent {
|
|
262
262
|
is_public: boolean;
|
263
263
|
// clan Id
|
264
264
|
clan_id: string;
|
265
|
+
// avatar
|
266
|
+
message_sender_avatar: string;
|
267
|
+
// message sender id
|
268
|
+
message_sender_id: string;
|
269
|
+
// message sender username
|
270
|
+
message_sender_username: string;
|
271
|
+
// message content
|
272
|
+
message_content: string;
|
273
|
+
// attachment
|
274
|
+
message_attachment: string;
|
275
|
+
// create time
|
276
|
+
message_created_time: string;
|
265
277
|
}
|
266
278
|
|
267
279
|
export interface UnmuteEvent {
|
@@ -1438,7 +1450,19 @@ export interface Socket {
|
|
1438
1450
|
is_public: boolean,
|
1439
1451
|
message_id: string,
|
1440
1452
|
timestamp_seconds: number,
|
1441
|
-
operation: number
|
1453
|
+
operation: number,
|
1454
|
+
// avatar
|
1455
|
+
message_sender_avatar: string,
|
1456
|
+
// message sender id
|
1457
|
+
message_sender_id: string,
|
1458
|
+
// message sender username
|
1459
|
+
message_sender_username: string,
|
1460
|
+
// message content
|
1461
|
+
message_content: string,
|
1462
|
+
// attachment
|
1463
|
+
message_attachment: string,
|
1464
|
+
// create time
|
1465
|
+
message_created_time: string,
|
1442
1466
|
): Promise<LastPinMessageEvent>;
|
1443
1467
|
|
1444
1468
|
/** Send custom user status */
|
@@ -2724,7 +2748,19 @@ export class DefaultSocket implements Socket {
|
|
2724
2748
|
is_public: boolean,
|
2725
2749
|
message_id: string,
|
2726
2750
|
timestamp_seconds: number,
|
2727
|
-
operation: number
|
2751
|
+
operation: number,
|
2752
|
+
// avatar
|
2753
|
+
message_sender_avatar: string,
|
2754
|
+
// message sender id
|
2755
|
+
message_sender_id: string,
|
2756
|
+
// message sender username
|
2757
|
+
message_sender_username: string,
|
2758
|
+
// message content
|
2759
|
+
message_content: string,
|
2760
|
+
// attachment
|
2761
|
+
message_attachment: string,
|
2762
|
+
// create time
|
2763
|
+
message_created_time: string,
|
2728
2764
|
): Promise<LastPinMessageEvent> {
|
2729
2765
|
const response = await this.send({
|
2730
2766
|
last_pin_message_event: {
|
@@ -2735,6 +2771,12 @@ export class DefaultSocket implements Socket {
|
|
2735
2771
|
message_id: message_id,
|
2736
2772
|
timestamp_seconds: timestamp_seconds,
|
2737
2773
|
operation: operation,
|
2774
|
+
message_sender_avatar: message_sender_avatar,
|
2775
|
+
message_sender_id: message_sender_id,
|
2776
|
+
message_sender_username: message_sender_username,
|
2777
|
+
message_content: message_content,
|
2778
|
+
message_attachment: message_attachment,
|
2779
|
+
message_created_time: message_created_time,
|
2738
2780
|
},
|
2739
2781
|
});
|
2740
2782
|
return response.last_pin_message_event;
|