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 +2 -0
- package/dist/api.gen.d.ts +1 -0
- package/dist/mezon-js.cjs.js +2 -2
- package/dist/mezon-js.esm.mjs +2 -2
- package/dist/socket.d.ts +3 -2
- package/package.json +1 -1
- package/socket.ts +5 -3
package/api.gen.ts
CHANGED
package/dist/api.gen.d.ts
CHANGED
package/dist/mezon-js.cjs.js
CHANGED
@@ -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
|
}
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -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
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
|
|