mezon-js 2.10.79 → 2.10.80

Sign up to get free protection for your applications and to get access to all the features.
package/api.gen.ts CHANGED
@@ -1743,6 +1743,8 @@ export interface ApiNotificationUserChannel {
1743
1743
  notification_setting_type?: number;
1744
1744
  //
1745
1745
  time_mute?: string;
1746
+ //
1747
+ channel_id?: string;
1746
1748
  }
1747
1749
 
1748
1750
  /** */
package/dist/api.gen.d.ts CHANGED
@@ -1008,6 +1008,7 @@ export interface ApiNotificationUserChannel {
1008
1008
  id?: string;
1009
1009
  notification_setting_type?: number;
1010
1010
  time_mute?: string;
1011
+ channel_id?: string;
1011
1012
  }
1012
1013
  /** */
1013
1014
  export interface ApiStreamHttpCallbackRequest {
@@ -7211,6 +7211,8 @@ var _DefaultSocket = class _DefaultSocket {
7211
7211
  this.onroleevent(message.role_event);
7212
7212
  } else if (message.event_emoji) {
7213
7213
  this.oneventemoji(message.event_emoji);
7214
+ } else if (message.noti_user_channel) {
7215
+ this.oneventnotiuserchannel(message.noti_user_channel);
7214
7216
  } else if (message.webhook_event) {
7215
7217
  this.oneventwebhook(message.webhook_event);
7216
7218
  } else if (message.channel_deleted_event) {
@@ -7552,6 +7554,11 @@ var _DefaultSocket = class _DefaultSocket {
7552
7554
  console.log(eventEmoji);
7553
7555
  }
7554
7556
  }
7557
+ oneventnotiuserchannel(notiUserChannel) {
7558
+ if (this.verbose && window && window.console) {
7559
+ console.log(notiUserChannel);
7560
+ }
7561
+ }
7555
7562
  oneventwebhook(webhook_event) {
7556
7563
  if (this.verbose && window && window.console) {
7557
7564
  console.log(webhook_event);
@@ -7177,6 +7177,8 @@ var _DefaultSocket = class _DefaultSocket {
7177
7177
  this.onroleevent(message.role_event);
7178
7178
  } else if (message.event_emoji) {
7179
7179
  this.oneventemoji(message.event_emoji);
7180
+ } else if (message.noti_user_channel) {
7181
+ this.oneventnotiuserchannel(message.noti_user_channel);
7180
7182
  } else if (message.webhook_event) {
7181
7183
  this.oneventwebhook(message.webhook_event);
7182
7184
  } else if (message.channel_deleted_event) {
@@ -7518,6 +7520,11 @@ var _DefaultSocket = class _DefaultSocket {
7518
7520
  console.log(eventEmoji);
7519
7521
  }
7520
7522
  }
7523
+ oneventnotiuserchannel(notiUserChannel) {
7524
+ if (this.verbose && window && window.console) {
7525
+ console.log(notiUserChannel);
7526
+ }
7527
+ }
7521
7528
  oneventwebhook(webhook_event) {
7522
7529
  if (this.verbose && window && window.console) {
7523
7530
  console.log(webhook_event);
package/dist/socket.d.ts CHANGED
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { ApiChannelDescription, ApiChannelMessageHeader, ApiCreateEventRequest, ApiGiveCoffeeEvent, ApiMessageAttachment, ApiMessageMention, ApiMessageReaction, ApiMessageRef, ApiPermissionUpdate, ApiRole, ApiRpc, ApiTokenSentEvent, ApiUserActivity, ApiWebhook } from "./api.gen";
16
+ import { ApiChannelDescription, ApiChannelMessageHeader, ApiCreateEventRequest, ApiGiveCoffeeEvent, ApiMessageAttachment, ApiMessageMention, ApiMessageReaction, ApiMessageRef, ApiNotificationUserChannel, ApiPermissionUpdate, ApiRole, ApiRpc, ApiTokenSentEvent, ApiUserActivity, ApiWebhook } from "./api.gen";
17
17
  import { Session } from "./session";
18
18
  import { ChannelMessage } from "./client";
19
19
  import { WebSocketAdapter } from "./web_socket_adapter";
@@ -796,6 +796,7 @@ export interface Socket {
796
796
  oneventcreated: (clan_event_created: ApiCreateEventRequest) => void;
797
797
  oncoffeegiven: (give_coffee_event: ApiGiveCoffeeEvent) => void;
798
798
  oneventemoji: (event_emoji: EventEmoji) => void;
799
+ oneventnotiuserchannel: (noti_user_channel: ApiNotificationUserChannel) => void;
799
800
  oneventwebhook: (webhook_event: ApiWebhook) => void;
800
801
  onroleassign: (role_assign_event: RoleAssignedEvent) => void;
801
802
  onstreamingchannelstarted: (streaming_started_event: StreamingStartedEvent) => void;
@@ -861,6 +862,7 @@ export declare class DefaultSocket implements Socket {
861
862
  onchannelcreated(channelCreated: ChannelCreatedEvent): void;
862
863
  onroleevent(roleEvent: RoleEvent): void;
863
864
  oneventemoji(eventEmoji: EventEmoji): void;
865
+ oneventnotiuserchannel(notiUserChannel: ApiNotificationUserChannel): void;
864
866
  oneventwebhook(webhook_event: ApiWebhook): void;
865
867
  onchanneldeleted(channelDeleted: ChannelDeletedEvent): void;
866
868
  onclandeleted(clanDeleted: ClanDeletedEvent): void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mezon-js",
3
3
 
4
- "version": "2.10.79",
4
+ "version": "2.10.80",
5
5
 
6
6
  "scripts": {
7
7
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
package/socket.ts CHANGED
@@ -24,6 +24,7 @@ import {
24
24
  ApiMessageReaction,
25
25
  ApiMessageRef,
26
26
  ApiNotification,
27
+ ApiNotificationUserChannel,
27
28
  ApiPermissionUpdate,
28
29
  ApiRole,
29
30
  ApiRpc,
@@ -1295,6 +1296,8 @@ export interface Socket {
1295
1296
 
1296
1297
  oneventemoji: (event_emoji: EventEmoji) => void;
1297
1298
 
1299
+ oneventnotiuserchannel: (noti_user_channel: ApiNotificationUserChannel) => void;
1300
+
1298
1301
  oneventwebhook: (webhook_event: ApiWebhook) => void;
1299
1302
 
1300
1303
  onroleassign: (role_assign_event: RoleAssignedEvent) => void;
@@ -1428,6 +1431,8 @@ export class DefaultSocket implements Socket {
1428
1431
  this.onroleevent(message.role_event);
1429
1432
  } else if (message.event_emoji) {
1430
1433
  this.oneventemoji(message.event_emoji);
1434
+ } else if (message.noti_user_channel) {
1435
+ this.oneventnotiuserchannel(message.noti_user_channel);
1431
1436
  } else if (message.webhook_event) {
1432
1437
  this.oneventwebhook(message.webhook_event);
1433
1438
  } else if (message.channel_deleted_event) {
@@ -1800,6 +1805,12 @@ export class DefaultSocket implements Socket {
1800
1805
  }
1801
1806
  }
1802
1807
 
1808
+ oneventnotiuserchannel(notiUserChannel: ApiNotificationUserChannel) {
1809
+ if (this.verbose && window && window.console) {
1810
+ console.log(notiUserChannel);
1811
+ }
1812
+ }
1813
+
1803
1814
  oneventwebhook(webhook_event: ApiWebhook) {
1804
1815
  if (this.verbose && window && window.console) {
1805
1816
  console.log(webhook_event);