mezon-js 2.7.39 → 2.7.40

Sign up to get free protection for your applications and to get access to all the features.
package/api.gen.ts CHANGED
@@ -552,6 +552,8 @@ export interface ApiEventManagement {
552
552
  title?: string;
553
553
  //
554
554
  user_ids?: Array<string>;
555
+ //
556
+ create_time?: string;
555
557
  }
556
558
 
557
559
  /** */
package/dist/api.gen.d.ts CHANGED
@@ -315,6 +315,7 @@ export interface ApiEventManagement {
315
315
  start_time?: string;
316
316
  title?: string;
317
317
  user_ids?: Array<string>;
318
+ create_time?: string;
318
319
  }
319
320
  /** */
320
321
  export interface ApiFilterParam {
@@ -4551,9 +4551,9 @@ var _DefaultSocket = class _DefaultSocket {
4551
4551
  updateStatus(status) {
4552
4552
  return this.send({ status_update: { status } });
4553
4553
  }
4554
- writeChatMessage(clan_id, channel_id, channel_label, mode, content, mentions, attachments, references, anonymous_message, mention_everyone) {
4554
+ writeChatMessage(clan_id, channel_id, channel_label, mode, content, mentions, attachments, references, anonymous_message, mention_everyone, notifi_content) {
4555
4555
  return __async(this, null, function* () {
4556
- const response = yield this.send({ channel_message_send: { clan_id, channel_id, channel_label, mode, content, mentions, attachments, references, anonymous_message, mention_everyone } });
4556
+ const response = yield this.send({ channel_message_send: { clan_id, channel_id, channel_label, mode, content, mentions, attachments, references, anonymous_message, mention_everyone, notifi_content } });
4557
4557
  return response.channel_message_ack;
4558
4558
  });
4559
4559
  }
@@ -4522,9 +4522,9 @@ var _DefaultSocket = class _DefaultSocket {
4522
4522
  updateStatus(status) {
4523
4523
  return this.send({ status_update: { status } });
4524
4524
  }
4525
- writeChatMessage(clan_id, channel_id, channel_label, mode, content, mentions, attachments, references, anonymous_message, mention_everyone) {
4525
+ writeChatMessage(clan_id, channel_id, channel_label, mode, content, mentions, attachments, references, anonymous_message, mention_everyone, notifi_content) {
4526
4526
  return __async(this, null, function* () {
4527
- const response = yield this.send({ channel_message_send: { clan_id, channel_id, channel_label, mode, content, mentions, attachments, references, anonymous_message, mention_everyone } });
4527
+ const response = yield this.send({ channel_message_send: { clan_id, channel_id, channel_label, mode, content, mentions, attachments, references, anonymous_message, mention_everyone, notifi_content } });
4528
4528
  return response.channel_message_ack;
4529
4529
  });
4530
4530
  }
package/dist/socket.d.ts CHANGED
@@ -199,6 +199,7 @@ interface ChannelMessageSend {
199
199
  attachments?: Array<MessageAttachmentEvent>;
200
200
  anonymous_message?: boolean;
201
201
  mention_everyone?: boolean;
202
+ notifi_content: any;
202
203
  };
203
204
  }
204
205
  /** Update a message previously sent to a realtime chat channel. */
@@ -562,7 +563,7 @@ export interface Socket {
562
563
  /** Update the status for the current user online. */
563
564
  updateStatus(status?: string): Promise<void>;
564
565
  /** Send a chat message to a chat channel on the server. */
565
- writeChatMessage(clan_id: string, channel_id: string, channel_label: string, mode: number, content?: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymous_message?: boolean, mention_everyone?: boolean): Promise<ChannelMessageAck>;
566
+ writeChatMessage(clan_id: string, channel_id: string, channel_label: string, mode: number, content?: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymous_message?: boolean, mention_everyone?: boolean, notifi_content?: any): Promise<ChannelMessageAck>;
566
567
  /** Send message typing */
567
568
  writeMessageTyping(channel_id: string, channel_label: string, mode: number): Promise<MessageTypingEvent>;
568
569
  /** Send message reaction */
@@ -693,7 +694,7 @@ export declare class DefaultSocket implements Socket {
693
694
  unfollowUsers(user_ids: string[]): Promise<void>;
694
695
  updateChatMessage(channel_id: string, channel_label: string, mode: number, message_id: string, content: any): Promise<ChannelMessageAck>;
695
696
  updateStatus(status?: string): Promise<void>;
696
- writeChatMessage(clan_id: string, channel_id: string, channel_label: string, mode: number, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymous_message?: boolean, mention_everyone?: Boolean): Promise<ChannelMessageAck>;
697
+ writeChatMessage(clan_id: string, channel_id: string, channel_label: string, mode: number, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymous_message?: boolean, mention_everyone?: Boolean, notifi_content?: any): Promise<ChannelMessageAck>;
697
698
  writeMessageReaction(id: string, channel_id: string, channel_label: string, mode: number, message_id: string, emoji: string, count: number, message_sender_id: string, action_delete: boolean): Promise<MessageReactionEvent>;
698
699
  writeMessageTyping(channel_id: string, channel_label: string, mode: number): Promise<MessageTypingEvent>;
699
700
  writeLastSeenMessage(channel_id: string, channel_label: string, mode: number, message_id: string, timestamp: string): Promise<LastSeenMessageEvent>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js",
3
- "version": "2.7.39",
3
+ "version": "2.7.40",
4
4
  "scripts": {
5
5
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
6
6
  },
package/socket.ts CHANGED
@@ -276,6 +276,8 @@ interface ChannelMessageSend {
276
276
  anonymous_message?: boolean;
277
277
  //
278
278
  mention_everyone?: boolean;
279
+ //
280
+ notifi_content: any;
279
281
  };
280
282
  }
281
283
 
@@ -735,7 +737,7 @@ export interface Socket {
735
737
  updateStatus(status? : string) : Promise<void>;
736
738
 
737
739
  /** Send a chat message to a chat channel on the server. */
738
- writeChatMessage(clan_id: string, channel_id: string, channel_label: string, mode: number, content?: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymous_message?: boolean, mention_everyone?:boolean) : Promise<ChannelMessageAck>;
740
+ writeChatMessage(clan_id: string, channel_id: string, channel_label: string, mode: number, content?: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymous_message?: boolean, mention_everyone?:boolean, notifi_content?: any) : Promise<ChannelMessageAck>;
739
741
 
740
742
  /** Send message typing */
741
743
  writeMessageTyping(channel_id: string, channel_label: string, mode: number) : Promise<MessageTypingEvent>;
@@ -1346,8 +1348,8 @@ export class DefaultSocket implements Socket {
1346
1348
  return this.send({status_update: {status: status}});
1347
1349
  }
1348
1350
 
1349
- async writeChatMessage(clan_id: string, channel_id: string, channel_label: string, mode: number, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymous_message?: boolean, mention_everyone?:Boolean ): Promise<ChannelMessageAck> {
1350
- const response = await this.send({channel_message_send: {clan_id: clan_id, channel_id: channel_id, channel_label:channel_label, mode:mode, content: content, mentions: mentions, attachments: attachments, references: references, anonymous_message: anonymous_message, mention_everyone:mention_everyone}});
1351
+ async writeChatMessage(clan_id: string, channel_id: string, channel_label: string, mode: number, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymous_message?: boolean, mention_everyone?:Boolean, notifi_content?: any ): Promise<ChannelMessageAck> {
1352
+ const response = await this.send({channel_message_send: {clan_id: clan_id, channel_id: channel_id, channel_label:channel_label, mode:mode, content: content, mentions: mentions, attachments: attachments, references: references, anonymous_message: anonymous_message, mention_everyone:mention_everyone, notifi_content:notifi_content}});
1351
1353
  return response.channel_message_ack;
1352
1354
  }
1353
1355