mezon-js 2.8.84 → 2.8.85
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 +2 -2
- package/dist/mezon-js.esm.mjs +2 -2
- package/dist/socket.d.ts +22 -10
- package/package.json +1 -1
- package/socket.ts +26 -16
package/dist/mezon-js.cjs.js
CHANGED
|
@@ -5349,9 +5349,9 @@ var _DefaultSocket = class _DefaultSocket {
|
|
|
5349
5349
|
return response.permission_role_channel_list_event;
|
|
5350
5350
|
});
|
|
5351
5351
|
}
|
|
5352
|
-
|
|
5352
|
+
listStickersByUserId() {
|
|
5353
5353
|
return __async(this, null, function* () {
|
|
5354
|
-
const response = yield this.send({ sticker_listed_event: {
|
|
5354
|
+
const response = yield this.send({ sticker_listed_event: {} });
|
|
5355
5355
|
return response.sticker_listed_event;
|
|
5356
5356
|
});
|
|
5357
5357
|
}
|
package/dist/mezon-js.esm.mjs
CHANGED
|
@@ -5320,9 +5320,9 @@ var _DefaultSocket = class _DefaultSocket {
|
|
|
5320
5320
|
return response.permission_role_channel_list_event;
|
|
5321
5321
|
});
|
|
5322
5322
|
}
|
|
5323
|
-
|
|
5323
|
+
listStickersByUserId() {
|
|
5324
5324
|
return __async(this, null, function* () {
|
|
5325
|
-
const response = yield this.send({ sticker_listed_event: {
|
|
5325
|
+
const response = yield this.send({ sticker_listed_event: {} });
|
|
5326
5326
|
return response.sticker_listed_event;
|
|
5327
5327
|
});
|
|
5328
5328
|
}
|
package/dist/socket.d.ts
CHANGED
|
@@ -79,12 +79,28 @@ interface ChannelLeave {
|
|
|
79
79
|
}
|
|
80
80
|
export interface AddClanUserEvent {
|
|
81
81
|
clan_id: string;
|
|
82
|
-
user:
|
|
82
|
+
user: UserProfileRedis;
|
|
83
|
+
}
|
|
84
|
+
export interface UserProfileRedis {
|
|
85
|
+
/** User IDs to follow. */
|
|
86
|
+
user_id: string;
|
|
87
|
+
/** Username to follow. */
|
|
88
|
+
username: string;
|
|
89
|
+
/** Avatar to follow. */
|
|
90
|
+
avatar: string;
|
|
91
|
+
/** Display name */
|
|
92
|
+
display_name: string;
|
|
93
|
+
/** about me */
|
|
94
|
+
about_me: string;
|
|
95
|
+
/** custom status */
|
|
96
|
+
custom_status: string;
|
|
97
|
+
/** create time */
|
|
98
|
+
create_time_second: number;
|
|
83
99
|
}
|
|
84
100
|
/** UserChannelAddedEvent */
|
|
85
101
|
export interface UserChannelAddedEvent {
|
|
86
102
|
channel_id: string;
|
|
87
|
-
users:
|
|
103
|
+
users: UserProfileRedis[];
|
|
88
104
|
status: string;
|
|
89
105
|
clan_id: string;
|
|
90
106
|
channel_type: number;
|
|
@@ -92,11 +108,6 @@ export interface UserChannelAddedEvent {
|
|
|
92
108
|
parent_id: string;
|
|
93
109
|
is_parent_public: boolean;
|
|
94
110
|
}
|
|
95
|
-
export interface AddUsers {
|
|
96
|
-
user_id: string;
|
|
97
|
-
avatar: string;
|
|
98
|
-
username: string;
|
|
99
|
-
}
|
|
100
111
|
export interface UserChannelRemovedEvent {
|
|
101
112
|
channel_id: string;
|
|
102
113
|
user_ids: string[];
|
|
@@ -396,7 +407,6 @@ export interface ClanNameExistedEvent {
|
|
|
396
407
|
}
|
|
397
408
|
/** */
|
|
398
409
|
export interface StrickerListedEvent {
|
|
399
|
-
clan_id: string;
|
|
400
410
|
stickers?: Array<ClanSticker>;
|
|
401
411
|
}
|
|
402
412
|
/** */
|
|
@@ -408,6 +418,8 @@ export interface ClanSticker {
|
|
|
408
418
|
id?: string;
|
|
409
419
|
shortname?: string;
|
|
410
420
|
source?: string;
|
|
421
|
+
logo?: string;
|
|
422
|
+
clan_name?: string;
|
|
411
423
|
}
|
|
412
424
|
/** */
|
|
413
425
|
export interface EmojiListedEvent {
|
|
@@ -607,7 +619,7 @@ export interface Socket {
|
|
|
607
619
|
listClanEmojiByClanId(clan_id: string): Promise<EmojiListedEvent>;
|
|
608
620
|
listUserPermissionInChannel(clan_id: string, channel_id: string): Promise<UserPermissionInChannelListEvent>;
|
|
609
621
|
listRoles(ClanId: string, Limit: number, State: number, Cursor: string): Promise<RoleListEvent>;
|
|
610
|
-
|
|
622
|
+
listStickersByUserId(): Promise<StrickerListedEvent>;
|
|
611
623
|
ListChannelByUserId(): Promise<ChannelDescListEvent>;
|
|
612
624
|
ListUserClansByUserId(): Promise<AllUserClans>;
|
|
613
625
|
hashtagDMList(user_id: Array<string>, limit: number): Promise<HashtagDmListEvent>;
|
|
@@ -701,7 +713,7 @@ export declare class DefaultSocket implements Socket {
|
|
|
701
713
|
ListUserClansByUserId(): Promise<AllUserClans>;
|
|
702
714
|
hashtagDMList(user_id: Array<string>, limit: number): Promise<HashtagDmListEvent>;
|
|
703
715
|
GetPermissionByRoleIdChannelId(role_id: string, channel_id: string): Promise<PermissionRoleChannelListEvent>;
|
|
704
|
-
|
|
716
|
+
listStickersByUserId(): Promise<StrickerListedEvent>;
|
|
705
717
|
getNotificationChannelSetting(channel_id: string): Promise<NotificationChannelSettingEvent>;
|
|
706
718
|
getNotificationCategorySetting(category_id: string): Promise<NotificationCategorySettingEvent>;
|
|
707
719
|
getNotificationClanSetting(clan_id: string): Promise<NotificationClanSettingEvent>;
|
package/package.json
CHANGED
package/socket.ts
CHANGED
|
@@ -104,7 +104,24 @@ export interface AddClanUserEvent {
|
|
|
104
104
|
//the clan id
|
|
105
105
|
clan_id: string;
|
|
106
106
|
// the user
|
|
107
|
-
user:
|
|
107
|
+
user: UserProfileRedis;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export interface UserProfileRedis {
|
|
111
|
+
/** User IDs to follow. */
|
|
112
|
+
user_id: string;
|
|
113
|
+
/** Username to follow. */
|
|
114
|
+
username: string;
|
|
115
|
+
/** Avatar to follow. */
|
|
116
|
+
avatar: string;
|
|
117
|
+
/** Display name */
|
|
118
|
+
display_name: string;
|
|
119
|
+
/** about me */
|
|
120
|
+
about_me: string;
|
|
121
|
+
/** custom status */
|
|
122
|
+
custom_status: string;
|
|
123
|
+
/** create time */
|
|
124
|
+
create_time_second: number;
|
|
108
125
|
}
|
|
109
126
|
|
|
110
127
|
/** UserChannelAddedEvent */
|
|
@@ -112,7 +129,7 @@ export interface UserChannelAddedEvent {
|
|
|
112
129
|
// the channel id
|
|
113
130
|
channel_id: string;
|
|
114
131
|
// the user
|
|
115
|
-
users:
|
|
132
|
+
users: UserProfileRedis[];
|
|
116
133
|
// the custom status
|
|
117
134
|
status: string;
|
|
118
135
|
// the clan id
|
|
@@ -127,15 +144,6 @@ export interface UserChannelAddedEvent {
|
|
|
127
144
|
is_parent_public: boolean;
|
|
128
145
|
}
|
|
129
146
|
|
|
130
|
-
export interface AddUsers {
|
|
131
|
-
// User IDs to follow.
|
|
132
|
-
user_id: string;
|
|
133
|
-
// Avatar to follow.
|
|
134
|
-
avatar: string;
|
|
135
|
-
// Username to follow.
|
|
136
|
-
username: string;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
147
|
export interface UserChannelRemovedEvent {
|
|
140
148
|
// the channel id
|
|
141
149
|
channel_id: string;
|
|
@@ -570,8 +578,6 @@ export interface ClanNameExistedEvent {
|
|
|
570
578
|
|
|
571
579
|
/** */
|
|
572
580
|
export interface StrickerListedEvent {
|
|
573
|
-
// clan id
|
|
574
|
-
clan_id: string;
|
|
575
581
|
// sticker data
|
|
576
582
|
stickers?: Array<ClanSticker>;
|
|
577
583
|
}
|
|
@@ -592,6 +598,10 @@ export interface ClanSticker {
|
|
|
592
598
|
shortname?: string;
|
|
593
599
|
//
|
|
594
600
|
source?: string;
|
|
601
|
+
//
|
|
602
|
+
logo?: string;
|
|
603
|
+
//
|
|
604
|
+
clan_name?: string;
|
|
595
605
|
}
|
|
596
606
|
|
|
597
607
|
/** */
|
|
@@ -934,7 +944,7 @@ export interface Socket {
|
|
|
934
944
|
|
|
935
945
|
listRoles(ClanId: string, Limit: number, State: number, Cursor: string): Promise<RoleListEvent>;
|
|
936
946
|
|
|
937
|
-
|
|
947
|
+
listStickersByUserId(): Promise<StrickerListedEvent>;
|
|
938
948
|
|
|
939
949
|
ListChannelByUserId(): Promise<ChannelDescListEvent>;
|
|
940
950
|
|
|
@@ -1544,8 +1554,8 @@ export class DefaultSocket implements Socket {
|
|
|
1544
1554
|
return response.permission_role_channel_list_event
|
|
1545
1555
|
}
|
|
1546
1556
|
|
|
1547
|
-
async
|
|
1548
|
-
const response = await this.send({sticker_listed_event: {
|
|
1557
|
+
async listStickersByUserId(): Promise<StrickerListedEvent> {
|
|
1558
|
+
const response = await this.send({sticker_listed_event: {}});
|
|
1549
1559
|
return response.sticker_listed_event
|
|
1550
1560
|
}
|
|
1551
1561
|
|