mezon-js 2.7.47 → 2.7.49

Sign up to get free protection for your applications and to get access to all the features.
package/dist/socket.d.ts CHANGED
@@ -40,7 +40,7 @@ export interface Channel {
40
40
  user_id_one: string;
41
41
  user_id_two: string;
42
42
  }
43
- interface ClanJoin {
43
+ export interface ClanJoin {
44
44
  clan_join: {
45
45
  clan_id: string;
46
46
  };
@@ -49,9 +49,9 @@ interface ClanJoin {
49
49
  interface ChannelJoin {
50
50
  channel_join: {
51
51
  /** The id of the channel to join. */
52
- target_id: string;
52
+ channel_id: string;
53
53
  /** The name of the channel to join. */
54
- target: string;
54
+ channel_label: string;
55
55
  /** The channel type: 1 = Channel, 2 = Direct Message, 3 = Group. */
56
56
  type: number;
57
57
  /** Whether channel messages are persisted in the database. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js",
3
- "version": "2.7.47",
3
+ "version": "2.7.49",
4
4
  "scripts": {
5
5
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
6
6
  },
package/socket.ts CHANGED
@@ -54,7 +54,7 @@ export interface Channel {
54
54
  user_id_two: string;
55
55
  }
56
56
 
57
- interface ClanJoin {
57
+ export interface ClanJoin {
58
58
  clan_join: {
59
59
  clan_id: string;
60
60
  }
@@ -64,9 +64,9 @@ interface ClanJoin {
64
64
  interface ChannelJoin {
65
65
  channel_join: {
66
66
  /** The id of the channel to join. */
67
- target_id: string;
67
+ channel_id: string;
68
68
  /** The name of the channel to join. */
69
- target: string;
69
+ channel_label: string;
70
70
  /** The channel type: 1 = Channel, 2 = Direct Message, 3 = Group. */
71
71
  type: number;
72
72
  /** Whether channel messages are persisted in the database. */