mezon-js 2.10.23 → 2.10.24

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.
@@ -7720,7 +7720,7 @@ var _DefaultSocket = class _DefaultSocket {
7720
7720
  }
7721
7721
  });
7722
7722
  }
7723
- removeChatMessage(clan_id, channel_id, mode, is_public, message_id) {
7723
+ removeChatMessage(clan_id, channel_id, mode, is_public, message_id, has_attachment) {
7724
7724
  return __async(this, null, function* () {
7725
7725
  const response = yield this.send({
7726
7726
  channel_message_remove: {
@@ -7728,7 +7728,8 @@ var _DefaultSocket = class _DefaultSocket {
7728
7728
  channel_id,
7729
7729
  mode,
7730
7730
  message_id,
7731
- is_public
7731
+ is_public,
7732
+ has_attachment
7732
7733
  }
7733
7734
  });
7734
7735
  return response.channel_message_ack;
@@ -7686,7 +7686,7 @@ var _DefaultSocket = class _DefaultSocket {
7686
7686
  }
7687
7687
  });
7688
7688
  }
7689
- removeChatMessage(clan_id, channel_id, mode, is_public, message_id) {
7689
+ removeChatMessage(clan_id, channel_id, mode, is_public, message_id, has_attachment) {
7690
7690
  return __async(this, null, function* () {
7691
7691
  const response = yield this.send({
7692
7692
  channel_message_remove: {
@@ -7694,7 +7694,8 @@ var _DefaultSocket = class _DefaultSocket {
7694
7694
  channel_id,
7695
7695
  mode,
7696
7696
  message_id,
7697
- is_public
7697
+ is_public,
7698
+ has_attachment
7698
7699
  }
7699
7700
  });
7700
7701
  return response.channel_message_ack;
package/dist/socket.d.ts CHANGED
@@ -229,6 +229,8 @@ interface ChannelMessageRemove {
229
229
  /** A unique ID for the chat message to be removed. */
230
230
  message_id: string;
231
231
  is_public: boolean;
232
+ /** attachments */
233
+ has_attachment?: boolean;
232
234
  };
233
235
  }
234
236
  /** Presence update for a particular realtime chat channel. */
@@ -689,7 +691,7 @@ export interface Socket {
689
691
  /** Leave a chat channel on the server. */
690
692
  leaveChat(clan_id: string, channel_id: string, channel_type: number, is_public: boolean): Promise<void>;
691
693
  /** Remove a chat message from a chat channel on the server. */
692
- removeChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string): Promise<ChannelMessageAck>;
694
+ removeChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, has_attachment?: boolean): Promise<ChannelMessageAck>;
693
695
  /** Execute an RPC function to the server. */
694
696
  rpc(id?: string, payload?: string, http_key?: string): Promise<ApiRpc>;
695
697
  /** Unfollow one or more users from their status updates. */
@@ -887,7 +889,7 @@ export declare class DefaultSocket implements Socket {
887
889
  joinClanChat(clan_id: string): Promise<ClanJoin>;
888
890
  joinChat(clan_id: string, channel_id: string, channel_type: number, is_public: boolean): Promise<Channel>;
889
891
  leaveChat(clan_id: string, channel_id: string, channel_type: number, is_public: boolean): Promise<void>;
890
- removeChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string): Promise<ChannelMessageAck>;
892
+ removeChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, has_attachment?: boolean): Promise<ChannelMessageAck>;
891
893
  rpc(id?: string, payload?: string, http_key?: string): Promise<ApiRpc>;
892
894
  unfollowUsers(user_ids: string[]): Promise<void>;
893
895
  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): Promise<ChannelMessageAck>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mezon-js",
3
3
 
4
- "version": "2.10.23",
4
+ "version": "2.10.24",
5
5
 
6
6
  "scripts": {
7
7
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
package/socket.ts CHANGED
@@ -323,6 +323,8 @@ interface ChannelMessageRemove {
323
323
  message_id: string;
324
324
  // Is public
325
325
  is_public: boolean;
326
+ /** attachments */
327
+ has_attachment?: boolean;
326
328
  };
327
329
  }
328
330
 
@@ -977,7 +979,8 @@ export interface Socket {
977
979
  channel_id: string,
978
980
  mode: number,
979
981
  is_public: boolean,
980
- message_id: string
982
+ message_id: string,
983
+ has_attachment?: boolean
981
984
  ): Promise<ChannelMessageAck>;
982
985
 
983
986
  /** Execute an RPC function to the server. */
@@ -2059,7 +2062,8 @@ export class DefaultSocket implements Socket {
2059
2062
  channel_id: string,
2060
2063
  mode: number,
2061
2064
  is_public: boolean,
2062
- message_id: string
2065
+ message_id: string,
2066
+ has_attachment?: boolean
2063
2067
  ): Promise<ChannelMessageAck> {
2064
2068
  const response = await this.send({
2065
2069
  channel_message_remove: {
@@ -2068,6 +2072,7 @@ export class DefaultSocket implements Socket {
2068
2072
  mode: mode,
2069
2073
  message_id: message_id,
2070
2074
  is_public: is_public,
2075
+ has_attachment: has_attachment
2071
2076
  },
2072
2077
  });
2073
2078