mezon-js 2.7.69 → 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
@@ -416,7 +416,7 @@ export interface Socket {
416
416
  /** Send last seen message */
417
417
  writeLastSeenMessage(channel_id: string, mode: number, message_id: string, timestamp: string): Promise<LastSeenMessageEvent>;
418
418
  /** Send last pin message */
419
- 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>;
420
420
  /** send voice joined */
421
421
  writeVoiceJoined(id: string, clanId: string, clanName: string, voiceChannelId: string, voiceChannelLabel: string, participant: string, lastScreenshot: string): Promise<VoiceJoinedEvent>;
422
422
  /** send voice leaved */
@@ -522,7 +522,7 @@ export declare class DefaultSocket implements Socket {
522
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>;
523
523
  writeMessageTyping(channel_id: string, mode: number): Promise<MessageTypingEvent>;
524
524
  writeLastSeenMessage(channel_id: string, mode: number, message_id: string, timestamp: string): Promise<LastSeenMessageEvent>;
525
- 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>;
526
526
  writeVoiceJoined(id: string, clanId: string, clanName: string, voiceChannelId: string, voiceChannelLabel: string, participant: string, lastScreenshot: string): Promise<VoiceJoinedEvent>;
527
527
  writeVoiceLeaved(id: string, clanId: string, voiceChannelId: string, voiceUserId: string): Promise<VoiceLeavedEvent>;
528
528
  private pingPong;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js",
3
- "version": "2.7.69",
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
@@ -572,7 +572,7 @@ export interface Socket {
572
572
  writeLastSeenMessage(channel_id: string, mode: number, message_id: string, timestamp: string) : Promise<LastSeenMessageEvent>;
573
573
 
574
574
  /** Send last pin message */
575
- 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>;
576
576
 
577
577
  /** send voice joined */
578
578
  writeVoiceJoined(id: string, clanId: string, clanName: string, voiceChannelId: string, voiceChannelLabel: string, participant: string, lastScreenshot: string) : Promise<VoiceJoinedEvent>;
@@ -1084,8 +1084,8 @@ export class DefaultSocket implements Socket {
1084
1084
  return response.last_seen_message_event
1085
1085
  }
1086
1086
 
1087
- async writeLastPinMessage(channel_id: string, mode: number, message_id: string, timestamp: string) : Promise<LastPinMessageEvent> {
1088
- 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}});
1089
1089
  return response.last_pin_message_event
1090
1090
  }
1091
1091