mezon-js 2.7.68 → 2.7.70

Sign up to get free protection for your applications and to get access to all the features.
@@ -4816,9 +4816,9 @@ var _DefaultSocket = class _DefaultSocket {
4816
4816
  return response.last_seen_message_event;
4817
4817
  });
4818
4818
  }
4819
- writeLastPinMessage(channel_id, mode, message_id, timestamp) {
4819
+ writeLastPinMessage(channel_id, mode, message_id, timestamp, operation) {
4820
4820
  return __async(this, null, function* () {
4821
- const response = yield this.send({ last_pin_message_event: { channel_id, mode, message_id, timestamp } });
4821
+ const response = yield this.send({ last_pin_message_event: { channel_id, mode, message_id, timestamp, operation } });
4822
4822
  return response.last_pin_message_event;
4823
4823
  });
4824
4824
  }
@@ -4787,9 +4787,9 @@ var _DefaultSocket = class _DefaultSocket {
4787
4787
  return response.last_seen_message_event;
4788
4788
  });
4789
4789
  }
4790
- writeLastPinMessage(channel_id, mode, message_id, timestamp) {
4790
+ writeLastPinMessage(channel_id, mode, message_id, timestamp, operation) {
4791
4791
  return __async(this, null, function* () {
4792
- const response = yield this.send({ last_pin_message_event: { channel_id, mode, message_id, timestamp } });
4792
+ const response = yield this.send({ last_pin_message_event: { channel_id, mode, message_id, timestamp, operation } });
4793
4793
  return response.last_pin_message_event;
4794
4794
  });
4795
4795
  }
package/dist/socket.d.ts CHANGED
@@ -79,6 +79,10 @@ export interface LastPinMessageEvent {
79
79
  channel_label: string;
80
80
  /** The unique ID of this message. */
81
81
  message_id: string;
82
+ /** user id */
83
+ user_id: string;
84
+ /** operation */
85
+ operation: number;
82
86
  }
83
87
  /** Last seen message by user */
84
88
  export interface LastSeenMessageEvent {
@@ -412,7 +416,7 @@ export interface Socket {
412
416
  /** Send last seen message */
413
417
  writeLastSeenMessage(channel_id: string, mode: number, message_id: string, timestamp: string): Promise<LastSeenMessageEvent>;
414
418
  /** Send last pin message */
415
- writeLastPinMessage(channel_id: string, mode: number, message_id: string, timestamp: string): Promise<LastPinMessageEvent>;
419
+ writeLastPinMessage(channel_id: string, mode: number, message_id: string, timestamp: string, operation: number): Promise<LastPinMessageEvent>;
416
420
  /** send voice joined */
417
421
  writeVoiceJoined(id: string, clanId: string, clanName: string, voiceChannelId: string, voiceChannelLabel: string, participant: string, lastScreenshot: string): Promise<VoiceJoinedEvent>;
418
422
  /** send voice leaved */
@@ -518,7 +522,7 @@ export declare class DefaultSocket implements Socket {
518
522
  writeMessageReaction(id: string, channel_id: string, mode: number, message_id: string, emoji: string, count: number, message_sender_id: string, action_delete: boolean): Promise<MessageReactionEvent>;
519
523
  writeMessageTyping(channel_id: string, mode: number): Promise<MessageTypingEvent>;
520
524
  writeLastSeenMessage(channel_id: string, mode: number, message_id: string, timestamp: string): Promise<LastSeenMessageEvent>;
521
- writeLastPinMessage(channel_id: string, mode: number, message_id: string, timestamp: string): Promise<LastPinMessageEvent>;
525
+ writeLastPinMessage(channel_id: string, mode: number, message_id: string, timestamp: string, operation: number): Promise<LastPinMessageEvent>;
522
526
  writeVoiceJoined(id: string, clanId: string, clanName: string, voiceChannelId: string, voiceChannelLabel: string, participant: string, lastScreenshot: string): Promise<VoiceJoinedEvent>;
523
527
  writeVoiceLeaved(id: string, clanId: string, voiceChannelId: string, voiceUserId: string): Promise<VoiceLeavedEvent>;
524
528
  private pingPong;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js",
3
- "version": "2.7.68",
3
+ "version": "2.7.70",
4
4
  "scripts": {
5
5
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
6
6
  },
package/socket.ts CHANGED
@@ -98,6 +98,10 @@ export interface LastPinMessageEvent {
98
98
  channel_label: string;
99
99
  /** The unique ID of this message. */
100
100
  message_id: string;
101
+ /** user id */
102
+ user_id: string;
103
+ /** operation */
104
+ operation: number;
101
105
  }
102
106
 
103
107
  /** Last seen message by user */
@@ -568,7 +572,7 @@ export interface Socket {
568
572
  writeLastSeenMessage(channel_id: string, mode: number, message_id: string, timestamp: string) : Promise<LastSeenMessageEvent>;
569
573
 
570
574
  /** Send last pin message */
571
- writeLastPinMessage(channel_id: string, mode: number, message_id: string, timestamp: string) : Promise<LastPinMessageEvent>;
575
+ writeLastPinMessage(channel_id: string, mode: number, message_id: string, timestamp: string, operation: number) : Promise<LastPinMessageEvent>;
572
576
 
573
577
  /** send voice joined */
574
578
  writeVoiceJoined(id: string, clanId: string, clanName: string, voiceChannelId: string, voiceChannelLabel: string, participant: string, lastScreenshot: string) : Promise<VoiceJoinedEvent>;
@@ -1080,8 +1084,8 @@ export class DefaultSocket implements Socket {
1080
1084
  return response.last_seen_message_event
1081
1085
  }
1082
1086
 
1083
- async writeLastPinMessage(channel_id: string, mode: number, message_id: string, timestamp: string) : Promise<LastPinMessageEvent> {
1084
- const response = await this.send({last_pin_message_event: {channel_id: channel_id, mode: mode, message_id: message_id, timestamp: timestamp}});
1087
+ async writeLastPinMessage(channel_id: string, mode: number, message_id: string, timestamp: string, operation: number) : Promise<LastPinMessageEvent> {
1088
+ const response = await this.send({last_pin_message_event: {channel_id: channel_id, mode: mode, message_id: message_id, timestamp: timestamp, operation: operation}});
1085
1089
  return response.last_pin_message_event
1086
1090
  }
1087
1091