mezon-js 2.8.53 → 2.8.54
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 +8 -1
- package/package.json +1 -1
- package/socket.ts +16 -1
package/dist/mezon-js.cjs.js
CHANGED
|
@@ -5106,6 +5106,12 @@ var _DefaultSocket = class _DefaultSocket {
|
|
|
5106
5106
|
return response.channel_desc_list_event;
|
|
5107
5107
|
});
|
|
5108
5108
|
}
|
|
5109
|
+
ListUsersByUserId() {
|
|
5110
|
+
return __async(this, null, function* () {
|
|
5111
|
+
const response = yield this.send({ list_user: {} });
|
|
5112
|
+
return response.list_user;
|
|
5113
|
+
});
|
|
5114
|
+
}
|
|
5109
5115
|
hashtagDMList(user_id, limit) {
|
|
5110
5116
|
return __async(this, null, function* () {
|
|
5111
5117
|
const response = yield this.send({ hashtag_dm_list_event: { user_id, limit } });
|
package/dist/mezon-js.esm.mjs
CHANGED
|
@@ -5077,6 +5077,12 @@ var _DefaultSocket = class _DefaultSocket {
|
|
|
5077
5077
|
return response.channel_desc_list_event;
|
|
5078
5078
|
});
|
|
5079
5079
|
}
|
|
5080
|
+
ListUsersByUserId() {
|
|
5081
|
+
return __async(this, null, function* () {
|
|
5082
|
+
const response = yield this.send({ list_user: {} });
|
|
5083
|
+
return response.list_user;
|
|
5084
|
+
});
|
|
5085
|
+
}
|
|
5080
5086
|
hashtagDMList(user_id, limit) {
|
|
5081
5087
|
return __async(this, null, function* () {
|
|
5082
5088
|
const response = yield this.send({ hashtag_dm_list_event: { user_id, limit } });
|
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 { ApiMessageAttachment, ApiMessageMention, ApiMessageReaction, ApiMessageRef, ApiRpc } from "./api.gen";
|
|
16
|
+
import { ApiChannelMessageHeader, ApiMessageAttachment, ApiMessageMention, ApiMessageReaction, ApiMessageRef, ApiRpc, ApiUser } from "./api.gen";
|
|
17
17
|
import { Session } from "./session";
|
|
18
18
|
import { ChannelMessage, Notification } from "./client";
|
|
19
19
|
import { WebSocketAdapter } from "./web_socket_adapter";
|
|
@@ -400,6 +400,10 @@ export interface ChannelDescListEvent {
|
|
|
400
400
|
channeldesc?: Array<ChannelDescription>;
|
|
401
401
|
}
|
|
402
402
|
/** */
|
|
403
|
+
export interface ListUser {
|
|
404
|
+
user?: Array<ApiUser>;
|
|
405
|
+
}
|
|
406
|
+
/** */
|
|
403
407
|
export interface ChannelDescription {
|
|
404
408
|
clan_id?: string;
|
|
405
409
|
channel_id?: string;
|
|
@@ -409,6 +413,7 @@ export interface ChannelDescription {
|
|
|
409
413
|
meeting_code?: string;
|
|
410
414
|
clan_name?: string;
|
|
411
415
|
parrent_id?: string;
|
|
416
|
+
last_sent_message?: ApiChannelMessageHeader;
|
|
412
417
|
}
|
|
413
418
|
export interface HashtagDmListEvent {
|
|
414
419
|
user_id?: Array<string>;
|
|
@@ -563,6 +568,7 @@ export interface Socket {
|
|
|
563
568
|
listClanEmojiByClanId(clan_id: string): Promise<EmojiListedEvent>;
|
|
564
569
|
listClanStickersByClanId(clan_id: string): Promise<StrickerListedEvent>;
|
|
565
570
|
ListChannelByUserId(): Promise<ChannelDescListEvent>;
|
|
571
|
+
ListUsersByUserId(): Promise<ListUser>;
|
|
566
572
|
hashtagDMList(user_id: Array<string>, limit: number): Promise<HashtagDmListEvent>;
|
|
567
573
|
getNotificationChannelSetting(channel_id: string): Promise<NotificationChannelSettingEvent>;
|
|
568
574
|
getNotificationCategorySetting(category_id: string): Promise<NotificationCategorySettingEvent>;
|
|
@@ -649,6 +655,7 @@ export declare class DefaultSocket implements Socket {
|
|
|
649
655
|
checkDuplicateClanName(clan_name: string): Promise<ClanNameExistedEvent>;
|
|
650
656
|
listClanEmojiByClanId(clan_id: string): Promise<EmojiListedEvent>;
|
|
651
657
|
ListChannelByUserId(): Promise<ChannelDescListEvent>;
|
|
658
|
+
ListUsersByUserId(): Promise<ListUser>;
|
|
652
659
|
hashtagDMList(user_id: Array<string>, limit: number): Promise<HashtagDmListEvent>;
|
|
653
660
|
GetPermissionByRoleIdChannelId(role_id: string, channel_id: string): Promise<PermissionRoleChannelListEvent>;
|
|
654
661
|
listClanStickersByClanId(clan_id: string): Promise<StrickerListedEvent>;
|
package/package.json
CHANGED
package/socket.ts
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { ApiMessageAttachment, ApiMessageMention, ApiMessageReaction, ApiMessageRef, ApiNotification, ApiRpc} from "./api.gen";
|
|
17
|
+
import { ApiChannelMessageHeader, ApiMessageAttachment, ApiMessageMention, ApiMessageReaction, ApiMessageRef, ApiNotification, ApiRpc, ApiUser} from "./api.gen";
|
|
18
18
|
import {Session} from "./session";
|
|
19
19
|
import {ChannelMessage, Notification} from "./client";
|
|
20
20
|
import {WebSocketAdapter, WebSocketAdapterText} from "./web_socket_adapter"
|
|
@@ -568,6 +568,12 @@ export interface ChannelDescListEvent {
|
|
|
568
568
|
channeldesc?: Array<ChannelDescription>;
|
|
569
569
|
}
|
|
570
570
|
|
|
571
|
+
/** */
|
|
572
|
+
export interface ListUser {
|
|
573
|
+
//
|
|
574
|
+
user?: Array<ApiUser>;
|
|
575
|
+
}
|
|
576
|
+
|
|
571
577
|
/** */
|
|
572
578
|
export interface ChannelDescription {
|
|
573
579
|
// The clan of this channel
|
|
@@ -586,6 +592,8 @@ export interface ChannelDescription {
|
|
|
586
592
|
clan_name?: string;
|
|
587
593
|
//
|
|
588
594
|
parrent_id?: string;
|
|
595
|
+
//
|
|
596
|
+
last_sent_message?: ApiChannelMessageHeader;
|
|
589
597
|
}
|
|
590
598
|
|
|
591
599
|
// A list of Channel
|
|
@@ -850,6 +858,8 @@ export interface Socket {
|
|
|
850
858
|
listClanStickersByClanId(clan_id: string): Promise<StrickerListedEvent>;
|
|
851
859
|
|
|
852
860
|
ListChannelByUserId(): Promise<ChannelDescListEvent>;
|
|
861
|
+
|
|
862
|
+
ListUsersByUserId(): Promise<ListUser>;
|
|
853
863
|
|
|
854
864
|
hashtagDMList(user_id: Array<string>, limit: number): Promise<HashtagDmListEvent>;
|
|
855
865
|
|
|
@@ -1424,6 +1434,11 @@ export class DefaultSocket implements Socket {
|
|
|
1424
1434
|
return response.channel_desc_list_event
|
|
1425
1435
|
}
|
|
1426
1436
|
|
|
1437
|
+
async ListUsersByUserId(): Promise<ListUser> {
|
|
1438
|
+
const response = await this.send({list_user: {}});
|
|
1439
|
+
return response.list_user
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1427
1442
|
async hashtagDMList(user_id: Array<string>, limit: number): Promise<HashtagDmListEvent> {
|
|
1428
1443
|
const response = await this.send({hashtag_dm_list_event: {user_id: user_id, limit: limit }});
|
|
1429
1444
|
return response.hashtag_dm_list_event
|