mezon-js 2.12.56 → 2.12.57

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.
@@ -7772,7 +7772,7 @@ var _DefaultSocket = class _DefaultSocket {
7772
7772
  unfollowUsers(user_ids) {
7773
7773
  return this.send({ status_unfollow: { user_ids } });
7774
7774
  }
7775
- updateChatMessage(clan_id, channel_id, mode, is_public, message_id, content, mentions, attachments, hideEditted, topic_id, is_update_msg_topic) {
7775
+ updateChatMessage(clan_id, channel_id, mode, is_public, message_id, content, mentions, attachments, hideEditted, topic_id, is_update_msg_topic, old_mentions) {
7776
7776
  return __async(this, null, function* () {
7777
7777
  const response = yield this.send({
7778
7778
  channel_message_update: {
@@ -7786,7 +7786,8 @@ var _DefaultSocket = class _DefaultSocket {
7786
7786
  is_public,
7787
7787
  hide_editted: hideEditted,
7788
7788
  topic_id,
7789
- is_update_msg_topic
7789
+ is_update_msg_topic,
7790
+ old_mentions
7790
7791
  }
7791
7792
  });
7792
7793
  return response.channel_message_ack;
@@ -7738,7 +7738,7 @@ var _DefaultSocket = class _DefaultSocket {
7738
7738
  unfollowUsers(user_ids) {
7739
7739
  return this.send({ status_unfollow: { user_ids } });
7740
7740
  }
7741
- updateChatMessage(clan_id, channel_id, mode, is_public, message_id, content, mentions, attachments, hideEditted, topic_id, is_update_msg_topic) {
7741
+ updateChatMessage(clan_id, channel_id, mode, is_public, message_id, content, mentions, attachments, hideEditted, topic_id, is_update_msg_topic, old_mentions) {
7742
7742
  return __async(this, null, function* () {
7743
7743
  const response = yield this.send({
7744
7744
  channel_message_update: {
@@ -7752,7 +7752,8 @@ var _DefaultSocket = class _DefaultSocket {
7752
7752
  is_public,
7753
7753
  hide_editted: hideEditted,
7754
7754
  topic_id,
7755
- is_update_msg_topic
7755
+ is_update_msg_topic,
7756
+ old_mentions
7756
7757
  }
7757
7758
  });
7758
7759
  return response.channel_message_ack;
package/dist/socket.d.ts CHANGED
@@ -306,6 +306,7 @@ interface ChannelMessageUpdate {
306
306
  is_public: boolean;
307
307
  topic_id?: string;
308
308
  is_update_msg_topic?: boolean;
309
+ old_mentions?: string;
309
310
  };
310
311
  }
311
312
  /** Remove a message previously sent to a realtime chat channel. */
@@ -900,7 +901,7 @@ export interface Socket {
900
901
  /** Unfollow one or more users from their status updates. */
901
902
  unfollowUsers(user_ids: string[]): Promise<void>;
902
903
  /** Update a chat message on a chat channel in the server. */
903
- updateChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, hideEditted?: boolean, topic_id?: string, is_update_msg_topic?: boolean): Promise<ChannelMessageAck>;
904
+ updateChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, hideEditted?: boolean, topic_id?: string, is_update_msg_topic?: boolean, old_mentions?: string): Promise<ChannelMessageAck>;
904
905
  /** Update the status for the current user online. */
905
906
  updateStatus(status?: string): Promise<void>;
906
907
  /** Send a chat message to a chat channel on the server. */
@@ -1118,7 +1119,7 @@ export declare class DefaultSocket implements Socket {
1118
1119
  removeChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, has_attachment?: boolean, topic_id?: string, mentions?: string, references?: string): Promise<ChannelMessageAck>;
1119
1120
  rpc(id?: string, payload?: string, http_key?: string): Promise<ApiRpc>;
1120
1121
  unfollowUsers(user_ids: string[]): Promise<void>;
1121
- updateChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, hideEditted?: boolean, topic_id?: string, is_update_msg_topic?: boolean): Promise<ChannelMessageAck>;
1122
+ updateChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, hideEditted?: boolean, topic_id?: string, is_update_msg_topic?: boolean, old_mentions?: string): Promise<ChannelMessageAck>;
1122
1123
  updateStatus(status?: string): Promise<void>;
1123
1124
  writeQuickMenuEvent(menu_name: string, clan_id: string, channel_id: string, mode: number, is_public: boolean, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymous_message?: boolean, mention_everyone?: Boolean, avatar?: string, code?: number, topic_id?: string): Promise<QuickMenuEvent>;
1124
1125
  writeEphemeralMessage(receiver_id: string, clan_id: string, channel_id: string, mode: number, is_public: boolean, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymous_message?: boolean, mention_everyone?: Boolean, avatar?: string, code?: number, topic_id?: string): Promise<ChannelMessageAck>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js",
3
- "version": "2.12.56",
3
+ "version": "2.12.57",
4
4
  "scripts": {
5
5
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
6
6
  },
package/socket.ts CHANGED
@@ -478,6 +478,8 @@ interface ChannelMessageUpdate {
478
478
  topic_id?: string;
479
479
  //
480
480
  is_update_msg_topic?: boolean;
481
+ //
482
+ old_mentions?: string;
481
483
  };
482
484
  }
483
485
 
@@ -1409,7 +1411,8 @@ export interface Socket {
1409
1411
  attachments?: Array<ApiMessageAttachment>,
1410
1412
  hideEditted?: boolean,
1411
1413
  topic_id?: string,
1412
- is_update_msg_topic?: boolean
1414
+ is_update_msg_topic?: boolean,
1415
+ old_mentions?: string
1413
1416
  ): Promise<ChannelMessageAck>;
1414
1417
 
1415
1418
  /** Update the status for the current user online. */
@@ -2644,7 +2647,8 @@ export class DefaultSocket implements Socket {
2644
2647
  attachments?: Array<ApiMessageAttachment>,
2645
2648
  hideEditted?: boolean,
2646
2649
  topic_id?: string,
2647
- is_update_msg_topic?: boolean
2650
+ is_update_msg_topic?: boolean,
2651
+ old_mentions?: string
2648
2652
  ): Promise<ChannelMessageAck> {
2649
2653
  const response = await this.send({
2650
2654
  channel_message_update: {
@@ -2659,6 +2663,7 @@ export class DefaultSocket implements Socket {
2659
2663
  hide_editted: hideEditted,
2660
2664
  topic_id: topic_id,
2661
2665
  is_update_msg_topic: is_update_msg_topic,
2666
+ old_mentions: old_mentions
2662
2667
  },
2663
2668
  });
2664
2669
  return response.channel_message_ack;