mezon-js 2.10.26 → 2.10.27

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.
@@ -7976,11 +7976,11 @@ var _DefaultSocket = class _DefaultSocket {
7976
7976
  return response.join_ptt_channel;
7977
7977
  });
7978
7978
  }
7979
- talkPTTChannel(clan_id, channelId, isTalk) {
7979
+ talkPTTChannel(clanId, channelId, isTalk) {
7980
7980
  return __async(this, null, function* () {
7981
7981
  const response = yield this.send({
7982
7982
  talk_ptt_channel: {
7983
- clan_id,
7983
+ clan_id: clanId,
7984
7984
  channel_id: channelId,
7985
7985
  isTalk
7986
7986
  }
@@ -7942,11 +7942,11 @@ var _DefaultSocket = class _DefaultSocket {
7942
7942
  return response.join_ptt_channel;
7943
7943
  });
7944
7944
  }
7945
- talkPTTChannel(clan_id, channelId, isTalk) {
7945
+ talkPTTChannel(clanId, channelId, isTalk) {
7946
7946
  return __async(this, null, function* () {
7947
7947
  const response = yield this.send({
7948
7948
  talk_ptt_channel: {
7949
- clan_id,
7949
+ clan_id: clanId,
7950
7950
  channel_id: channelId,
7951
7951
  isTalk
7952
7952
  }
package/dist/socket.d.ts CHANGED
@@ -719,7 +719,7 @@ export interface Socket {
719
719
  /** send voice leaved */
720
720
  writeVoiceLeaved(id: string, clanId: string, voiceChannelId: string, voiceUserId: string): Promise<VoiceLeavedEvent>;
721
721
  joinPTTChannel(clanId: string, channelId: string, dataType: number, jsonData: string): Promise<JoinPTTChannel>;
722
- talkPTTChannel(clan_id: string, channelId: string, isTalk: boolean): Promise<TalkPTTChannel>;
722
+ talkPTTChannel(clanId: string, channelId: string, isTalk: boolean): Promise<TalkPTTChannel>;
723
723
  setHeartbeatTimeoutMs(ms: number): void;
724
724
  getHeartbeatTimeoutMs(): number;
725
725
  checkDuplicateName(name: string, condition_id: string, type: number): Promise<CheckNameExistedEvent>;
@@ -910,7 +910,7 @@ export declare class DefaultSocket implements Socket {
910
910
  handleDropdownBoxSelected(message_id: string, channel_id: string, selectbox_id: string, sender_id: string, user_id: string, value: Array<string>): Promise<DropdownBoxSelected>;
911
911
  handleMessageButtonClick(message_id: string, channel_id: string, button_id: string, sender_id: string, user_id: string, extra_data: string): Promise<MessageButtonClicked>;
912
912
  joinPTTChannel(clanId: string, channelId: string, dataType: number, jsonData: string): Promise<JoinPTTChannel>;
913
- talkPTTChannel(clan_id: string, channelId: string, isTalk: boolean): Promise<TalkPTTChannel>;
913
+ talkPTTChannel(clanId: string, channelId: string, isTalk: boolean): Promise<TalkPTTChannel>;
914
914
  private pingPong;
915
915
  }
916
916
  export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mezon-js",
3
3
 
4
- "version": "2.10.26",
4
+ "version": "2.10.27",
5
5
 
6
6
  "scripts": {
7
7
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
package/socket.ts CHANGED
@@ -1102,7 +1102,7 @@ export interface Socket {
1102
1102
  ): Promise<JoinPTTChannel>;
1103
1103
 
1104
1104
  talkPTTChannel(
1105
- clan_id: string,
1105
+ clanId: string,
1106
1106
  channelId: string,
1107
1107
  isTalk: boolean
1108
1108
  ): Promise<TalkPTTChannel>;
@@ -2418,13 +2418,13 @@ export class DefaultSocket implements Socket {
2418
2418
  }
2419
2419
 
2420
2420
  async talkPTTChannel(
2421
- clan_id: string,
2421
+ clanId: string,
2422
2422
  channelId: string,
2423
2423
  isTalk: boolean
2424
2424
  ): Promise<TalkPTTChannel> {
2425
2425
  const response = await this.send({
2426
2426
  talk_ptt_channel: {
2427
- clan_id: clan_id,
2427
+ clan_id: clanId,
2428
2428
  channel_id: channelId,
2429
2429
  isTalk
2430
2430
  },