mezon-js 2.9.0 → 2.9.2

Sign up to get free protection for your applications and to get access to all the features.
package/api.gen.ts CHANGED
@@ -1264,6 +1264,8 @@ export interface ApiPermissionUpdate {
1264
1264
  //
1265
1265
  permission_id?: string;
1266
1266
  //
1267
+ slug?: string;
1268
+ //
1267
1269
  type?: number;
1268
1270
  }
1269
1271
 
package/dist/api.gen.d.ts CHANGED
@@ -731,6 +731,7 @@ export interface ApiPermissionList {
731
731
  /** */
732
732
  export interface ApiPermissionUpdate {
733
733
  permission_id?: string;
734
+ slug?: string;
734
735
  type?: number;
735
736
  }
736
737
  /** */
@@ -5537,6 +5537,12 @@ var _DefaultSocket = class _DefaultSocket {
5537
5537
  return response.all_user_clans;
5538
5538
  });
5539
5539
  }
5540
+ listUsersAddChannelByChannelId(channelId, limit) {
5541
+ return __async(this, null, function* () {
5542
+ const response = yield this.send({ all_users_add_channel_event: { channel_id: channelId, limit } });
5543
+ return response.all_users_add_channel_event;
5544
+ });
5545
+ }
5540
5546
  hashtagDMList(user_id, limit) {
5541
5547
  return __async(this, null, function* () {
5542
5548
  const response = yield this.send({ hashtag_dm_list_event: { user_id, limit } });
@@ -5508,6 +5508,12 @@ var _DefaultSocket = class _DefaultSocket {
5508
5508
  return response.all_user_clans;
5509
5509
  });
5510
5510
  }
5511
+ listUsersAddChannelByChannelId(channelId, limit) {
5512
+ return __async(this, null, function* () {
5513
+ const response = yield this.send({ all_users_add_channel_event: { channel_id: channelId, limit } });
5514
+ return response.all_users_add_channel_event;
5515
+ });
5516
+ }
5511
5517
  hashtagDMList(user_id, limit) {
5512
5518
  return __async(this, null, function* () {
5513
5519
  const response = yield this.send({ hashtag_dm_list_event: { user_id, limit } });
package/dist/socket.d.ts CHANGED
@@ -462,6 +462,9 @@ export interface RoleEvent {
462
462
  status: number;
463
463
  user_id: string;
464
464
  }
465
+ export interface AllUsersAddChannelEvent {
466
+ user_ids: Array<string>;
467
+ }
465
468
  export interface EventEmoji {
466
469
  id: string;
467
470
  clan_id: string;
@@ -739,6 +742,7 @@ export interface Socket {
739
742
  listStickersByUserId(): Promise<StrickerListedEvent>;
740
743
  listChannelByUserId(): Promise<ChannelDescListEvent>;
741
744
  listUserClansByUserId(): Promise<AllUserClans>;
745
+ listUsersAddChannelByChannelId(channelId: string, limit: number): Promise<AllUsersAddChannelEvent>;
742
746
  hashtagDMList(user_id: Array<string>, limit: number): Promise<HashtagDmListEvent>;
743
747
  getNotificationChannelSetting(channel_id: string): Promise<NotificationChannelSettingEvent>;
744
748
  getNotificationCategorySetting(category_id: string): Promise<NotificationCategorySettingEvent>;
@@ -847,6 +851,7 @@ export declare class DefaultSocket implements Socket {
847
851
  listRoles(ClanId: string, Limit: number, State: number, Cursor: string): Promise<RoleListEvent>;
848
852
  listChannelByUserId(): Promise<ChannelDescListEvent>;
849
853
  listUserClansByUserId(): Promise<AllUserClans>;
854
+ listUsersAddChannelByChannelId(channelId: string, limit: number): Promise<AllUsersAddChannelEvent>;
850
855
  hashtagDMList(user_id: Array<string>, limit: number): Promise<HashtagDmListEvent>;
851
856
  getPermissionByRoleIdChannelId(role_id: string, channel_id: string): Promise<PermissionRoleChannelListEvent>;
852
857
  listStickersByUserId(): Promise<StrickerListedEvent>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mezon-js",
3
3
 
4
- "version": "2.9.0",
4
+ "version": "2.9.2",
5
5
 
6
6
  "scripts": {
7
7
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
package/socket.ts CHANGED
@@ -672,6 +672,10 @@ export interface RoleEvent {
672
672
  user_id: string;
673
673
  }
674
674
 
675
+ export interface AllUsersAddChannelEvent {
676
+ user_ids: Array<string>;
677
+ }
678
+
675
679
  export interface EventEmoji {
676
680
  id : string
677
681
  clan_id: string
@@ -1105,6 +1109,8 @@ export interface Socket {
1105
1109
  listChannelByUserId(): Promise<ChannelDescListEvent>;
1106
1110
 
1107
1111
  listUserClansByUserId(): Promise<AllUserClans>;
1112
+
1113
+ listUsersAddChannelByChannelId(channelId: string, limit: number): Promise<AllUsersAddChannelEvent>;
1108
1114
 
1109
1115
  hashtagDMList(user_id: Array<string>, limit: number): Promise<HashtagDmListEvent>;
1110
1116
 
@@ -1812,6 +1818,11 @@ export class DefaultSocket implements Socket {
1812
1818
  return response.all_user_clans
1813
1819
  }
1814
1820
 
1821
+ async listUsersAddChannelByChannelId(channelId: string, limit: number): Promise<AllUsersAddChannelEvent> {
1822
+ const response = await this.send({all_users_add_channel_event: {channel_id: channelId, limit: limit}});
1823
+ return response.all_users_add_channel_event
1824
+ }
1825
+
1815
1826
  async hashtagDMList(user_id: Array<string>, limit: number): Promise<HashtagDmListEvent> {
1816
1827
  const response = await this.send({hashtag_dm_list_event: {user_id: user_id, limit: limit }});
1817
1828
  return response.hashtag_dm_list_event