mezon-js 2.9.1 → 2.9.2
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.
- package/dist/mezon-js.cjs.js +6 -0
- package/dist/mezon-js.esm.mjs +6 -0
- package/dist/socket.d.ts +5 -0
- package/package.json +1 -1
- package/socket.ts +11 -0
package/dist/mezon-js.cjs.js
CHANGED
@@ -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 } });
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -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
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
|