mezon-js 2.8.81 → 2.8.82

Sign up to get free protection for your applications and to get access to all the features.
package/api.gen.ts CHANGED
@@ -506,6 +506,10 @@ export interface ApiChannelDescription {
506
506
  usernames?: string;
507
507
  //
508
508
  status?: number;
509
+ //
510
+ metadata?: Array<string>;
511
+ //
512
+ about_me?: Array<string>;
509
513
  }
510
514
 
511
515
  /** A message sent on a channel. */
package/dist/api.gen.d.ts CHANGED
@@ -292,6 +292,8 @@ export interface ApiChannelDescription {
292
292
  user_id?: Array<string>;
293
293
  usernames?: string;
294
294
  status?: number;
295
+ metadata?: Array<string>;
296
+ about_me?: Array<string>;
295
297
  }
296
298
  /** A message sent on a channel. */
297
299
  export interface ApiChannelMessage {
@@ -5291,18 +5291,6 @@ var _DefaultSocket = class _DefaultSocket {
5291
5291
  return response.notification_channel_category_setting_event;
5292
5292
  });
5293
5293
  }
5294
- addUserEmojiUsage(add_user_emoji_usage_event) {
5295
- return __async(this, null, function* () {
5296
- const response = yield this.send({ add_user_emoji_usage_event: { add_user_emoji_usage_event } });
5297
- return response.add_user_emoji_usage_event;
5298
- });
5299
- }
5300
- getUserEmojiUsage(clan_id) {
5301
- return __async(this, null, function* () {
5302
- const response = yield this.send({ get_user_emoji_usage_event: { clan_id } });
5303
- return response.get_user_emoji_usage_event;
5304
- });
5305
- }
5306
5294
  pingPong() {
5307
5295
  return __async(this, null, function* () {
5308
5296
  if (!this.adapter.isOpen()) {
@@ -5262,18 +5262,6 @@ var _DefaultSocket = class _DefaultSocket {
5262
5262
  return response.notification_channel_category_setting_event;
5263
5263
  });
5264
5264
  }
5265
- addUserEmojiUsage(add_user_emoji_usage_event) {
5266
- return __async(this, null, function* () {
5267
- const response = yield this.send({ add_user_emoji_usage_event: { add_user_emoji_usage_event } });
5268
- return response.add_user_emoji_usage_event;
5269
- });
5270
- }
5271
- getUserEmojiUsage(clan_id) {
5272
- return __async(this, null, function* () {
5273
- const response = yield this.send({ get_user_emoji_usage_event: { clan_id } });
5274
- return response.get_user_emoji_usage_event;
5275
- });
5276
- }
5277
5265
  pingPong() {
5278
5266
  return __async(this, null, function* () {
5279
5267
  if (!this.adapter.isOpen()) {
package/dist/socket.d.ts CHANGED
@@ -510,21 +510,6 @@ export interface NotificationChannelCategorySettingEvent {
510
510
  clan_id?: string;
511
511
  notification_channel_category_settings_list?: NotificationChannelCategorySetting[];
512
512
  }
513
- export interface UserEmojiUsage {
514
- user_id: string;
515
- emoji_id: string;
516
- clan_id: string;
517
- create_time: string;
518
- }
519
- export interface AddUserEmojiUsageEvent {
520
- emoji_id: string;
521
- clan_id: string;
522
- }
523
- /** Response cho ListUserEmojiUsage */
524
- export interface GetUserEmojiUsageEvent {
525
- clanId: string;
526
- user_emoji_usage: UserEmojiUsage[];
527
- }
528
513
  /** A socket connection to Mezon server. */
529
514
  export interface Socket {
530
515
  /** Connection is Open */
@@ -633,8 +618,6 @@ export interface Socket {
633
618
  GetPermissionByRoleIdChannelId(role_id: string, channel_id: string): Promise<PermissionRoleChannelListEvent>;
634
619
  getNotificationChannelCategorySetting(clan_id: string): Promise<NotificationChannelCategorySettingEvent>;
635
620
  oneventcreated: (clan_event_created: ApiCreateEventRequest) => void;
636
- addUserEmojiUsage: (add_user_emoji_usage_event: AddUserEmojiUsageEvent) => void;
637
- getUserEmojiUsage(clan_id: string): Promise<GetUserEmojiUsageEvent>;
638
621
  }
639
622
  /** Reports an error received from a socket message. */
640
623
  export interface SocketError {
@@ -724,8 +707,6 @@ export declare class DefaultSocket implements Socket {
724
707
  getNotificationClanSetting(clan_id: string): Promise<NotificationClanSettingEvent>;
725
708
  getNotificationReactMessage(channel_id: string): Promise<NotifiReactMessageEvent>;
726
709
  getNotificationChannelCategorySetting(clan_id: string): Promise<NotificationChannelCategorySettingEvent>;
727
- addUserEmojiUsage(add_user_emoji_usage_event: AddUserEmojiUsageEvent): Promise<any>;
728
- getUserEmojiUsage(clan_id: string): Promise<GetUserEmojiUsageEvent>;
729
710
  private pingPong;
730
711
  }
731
712
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js",
3
- "version": "2.8.81",
3
+ "version": "2.8.82",
4
4
  "scripts": {
5
5
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
6
6
  },
package/socket.ts CHANGED
@@ -772,23 +772,6 @@ export interface NotificationChannelCategorySettingEvent {
772
772
  notification_channel_category_settings_list?: NotificationChannelCategorySetting[]
773
773
  }
774
774
 
775
- export interface UserEmojiUsage {
776
- user_id: string;
777
- emoji_id: string;
778
- clan_id: string;
779
- create_time: string;
780
- }
781
-
782
- export interface AddUserEmojiUsageEvent {
783
- emoji_id: string;
784
- clan_id: string;
785
- }
786
-
787
- /** Response cho ListUserEmojiUsage */
788
- export interface GetUserEmojiUsageEvent {
789
- clanId: string;
790
- user_emoji_usage: UserEmojiUsage[];
791
- }
792
775
 
793
776
  /** A socket connection to Mezon server. */
794
777
  export interface Socket {
@@ -972,11 +955,6 @@ export interface Socket {
972
955
  getNotificationChannelCategorySetting(clan_id : string): Promise<NotificationChannelCategorySettingEvent>;
973
956
 
974
957
  oneventcreated: (clan_event_created: ApiCreateEventRequest) => void;
975
-
976
- addUserEmojiUsage: (add_user_emoji_usage_event: AddUserEmojiUsageEvent) => void;
977
-
978
- getUserEmojiUsage(clan_id: string): Promise<GetUserEmojiUsageEvent>
979
-
980
958
  }
981
959
 
982
960
  /** Reports an error received from a socket message. */
@@ -1596,16 +1574,7 @@ export class DefaultSocket implements Socket {
1596
1574
  return response.notification_channel_category_setting_event
1597
1575
  }
1598
1576
 
1599
- async addUserEmojiUsage(add_user_emoji_usage_event: AddUserEmojiUsageEvent) {
1600
- const response = await this.send({add_user_emoji_usage_event: {add_user_emoji_usage_event: add_user_emoji_usage_event}})
1601
- return response.add_user_emoji_usage_event
1602
- }
1603
1577
 
1604
- async getUserEmojiUsage(clan_id: string): Promise<GetUserEmojiUsageEvent> {
1605
- const response = await this.send({get_user_emoji_usage_event: {clan_id: clan_id}})
1606
- return response.get_user_emoji_usage_event
1607
- }
1608
-
1609
1578
  private async pingPong(): Promise<void> {
1610
1579
  if (!this.adapter.isOpen()) {
1611
1580
  return;