mezon-js 2.8.78 → 2.8.80
Sign up to get free protection for your applications and to get access to all the features.
- package/api.gen.ts +1 -1
- package/client.ts +3 -23
- package/dist/api.gen.d.ts +1 -1
- package/dist/client.d.ts +2 -2
- package/dist/mezon-js.cjs.js +3 -22
- package/dist/mezon-js.esm.mjs +3 -22
- package/package.json +1 -1
- package/socket.ts +3 -3
package/api.gen.ts
CHANGED
package/client.ts
CHANGED
@@ -196,9 +196,9 @@ export interface ChannelMessage {
|
|
196
196
|
//
|
197
197
|
message_id?: string;
|
198
198
|
//
|
199
|
-
|
199
|
+
hide_editted?: boolean;
|
200
200
|
//
|
201
|
-
|
201
|
+
is_public?: boolean;
|
202
202
|
}
|
203
203
|
|
204
204
|
/** A list of channel messages, usually a result of a list operation. */
|
@@ -1496,27 +1496,7 @@ export class Client {
|
|
1496
1496
|
|
1497
1497
|
response.channel_users!.forEach((gu) => {
|
1498
1498
|
result.channel_users!.push({
|
1499
|
-
|
1500
|
-
avatar_url: gu.user!.avatar_url,
|
1501
|
-
create_time: gu.user!.create_time,
|
1502
|
-
display_name: gu.user!.display_name,
|
1503
|
-
edge_count: gu.user!.edge_count ? Number(gu.user!.edge_count) : 0,
|
1504
|
-
facebook_id: gu.user!.facebook_id,
|
1505
|
-
gamecenter_id: gu.user!.gamecenter_id,
|
1506
|
-
google_id: gu.user!.google_id,
|
1507
|
-
id: gu.user!.id,
|
1508
|
-
lang_tag: gu.user!.lang_tag,
|
1509
|
-
location: gu.user!.location,
|
1510
|
-
online: gu.user!.online,
|
1511
|
-
steam_id: gu.user!.steam_id,
|
1512
|
-
timezone: gu.user!.timezone,
|
1513
|
-
update_time: gu.user!.update_time,
|
1514
|
-
username: gu.user!.username,
|
1515
|
-
about_me: gu.user?.about_me,
|
1516
|
-
metadata: gu.user!.metadata
|
1517
|
-
? JSON.parse(gu.user!.metadata!)
|
1518
|
-
: undefined,
|
1519
|
-
},
|
1499
|
+
user_id: gu.user_id,
|
1520
1500
|
role_id: gu!.role_id,
|
1521
1501
|
thread_id: gu.thread_id,
|
1522
1502
|
clan_avatar: gu.clan_avatar,
|
package/dist/api.gen.d.ts
CHANGED
package/dist/client.d.ts
CHANGED
@@ -71,8 +71,8 @@ export interface ChannelMessage {
|
|
71
71
|
update_time_seconds?: number;
|
72
72
|
mode?: number;
|
73
73
|
message_id?: string;
|
74
|
-
|
75
|
-
|
74
|
+
hide_editted?: boolean;
|
75
|
+
is_public?: boolean;
|
76
76
|
}
|
77
77
|
/** A list of channel messages, usually a result of a list operation. */
|
78
78
|
export interface ChannelMessageList {
|
package/dist/mezon-js.cjs.js
CHANGED
@@ -4840,8 +4840,8 @@ var _DefaultSocket = class _DefaultSocket {
|
|
4840
4840
|
mentions,
|
4841
4841
|
attachments,
|
4842
4842
|
references,
|
4843
|
-
|
4844
|
-
|
4843
|
+
hide_editted: message.channel_message.hide_editted,
|
4844
|
+
is_public: message.channel_message.is_public
|
4845
4845
|
};
|
4846
4846
|
this.onchannelmessage(e);
|
4847
4847
|
} else if (message.message_typing_event) {
|
@@ -5992,27 +5992,8 @@ var Client = class {
|
|
5992
5992
|
return Promise.resolve(result);
|
5993
5993
|
}
|
5994
5994
|
response.channel_users.forEach((gu) => {
|
5995
|
-
var _a;
|
5996
5995
|
result.channel_users.push({
|
5997
|
-
|
5998
|
-
avatar_url: gu.user.avatar_url,
|
5999
|
-
create_time: gu.user.create_time,
|
6000
|
-
display_name: gu.user.display_name,
|
6001
|
-
edge_count: gu.user.edge_count ? Number(gu.user.edge_count) : 0,
|
6002
|
-
facebook_id: gu.user.facebook_id,
|
6003
|
-
gamecenter_id: gu.user.gamecenter_id,
|
6004
|
-
google_id: gu.user.google_id,
|
6005
|
-
id: gu.user.id,
|
6006
|
-
lang_tag: gu.user.lang_tag,
|
6007
|
-
location: gu.user.location,
|
6008
|
-
online: gu.user.online,
|
6009
|
-
steam_id: gu.user.steam_id,
|
6010
|
-
timezone: gu.user.timezone,
|
6011
|
-
update_time: gu.user.update_time,
|
6012
|
-
username: gu.user.username,
|
6013
|
-
about_me: (_a = gu.user) == null ? void 0 : _a.about_me,
|
6014
|
-
metadata: gu.user.metadata ? JSON.parse(gu.user.metadata) : void 0
|
6015
|
-
},
|
5996
|
+
user_id: gu.user_id,
|
6016
5997
|
role_id: gu.role_id,
|
6017
5998
|
thread_id: gu.thread_id,
|
6018
5999
|
clan_avatar: gu.clan_avatar,
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -4811,8 +4811,8 @@ var _DefaultSocket = class _DefaultSocket {
|
|
4811
4811
|
mentions,
|
4812
4812
|
attachments,
|
4813
4813
|
references,
|
4814
|
-
|
4815
|
-
|
4814
|
+
hide_editted: message.channel_message.hide_editted,
|
4815
|
+
is_public: message.channel_message.is_public
|
4816
4816
|
};
|
4817
4817
|
this.onchannelmessage(e);
|
4818
4818
|
} else if (message.message_typing_event) {
|
@@ -5963,27 +5963,8 @@ var Client = class {
|
|
5963
5963
|
return Promise.resolve(result);
|
5964
5964
|
}
|
5965
5965
|
response.channel_users.forEach((gu) => {
|
5966
|
-
var _a;
|
5967
5966
|
result.channel_users.push({
|
5968
|
-
|
5969
|
-
avatar_url: gu.user.avatar_url,
|
5970
|
-
create_time: gu.user.create_time,
|
5971
|
-
display_name: gu.user.display_name,
|
5972
|
-
edge_count: gu.user.edge_count ? Number(gu.user.edge_count) : 0,
|
5973
|
-
facebook_id: gu.user.facebook_id,
|
5974
|
-
gamecenter_id: gu.user.gamecenter_id,
|
5975
|
-
google_id: gu.user.google_id,
|
5976
|
-
id: gu.user.id,
|
5977
|
-
lang_tag: gu.user.lang_tag,
|
5978
|
-
location: gu.user.location,
|
5979
|
-
online: gu.user.online,
|
5980
|
-
steam_id: gu.user.steam_id,
|
5981
|
-
timezone: gu.user.timezone,
|
5982
|
-
update_time: gu.user.update_time,
|
5983
|
-
username: gu.user.username,
|
5984
|
-
about_me: (_a = gu.user) == null ? void 0 : _a.about_me,
|
5985
|
-
metadata: gu.user.metadata ? JSON.parse(gu.user.metadata) : void 0
|
5986
|
-
},
|
5967
|
+
user_id: gu.user_id,
|
5987
5968
|
role_id: gu.role_id,
|
5988
5969
|
thread_id: gu.thread_id,
|
5989
5970
|
clan_avatar: gu.clan_avatar,
|
package/package.json
CHANGED
package/socket.ts
CHANGED
@@ -954,7 +954,7 @@ export interface Socket {
|
|
954
954
|
|
955
955
|
getNotificationChannelCategorySetting(clan_id : string): Promise<NotificationChannelCategorySettingEvent>;
|
956
956
|
|
957
|
-
oneventcreated: (clan_event_created: ApiCreateEventRequest) => void
|
957
|
+
oneventcreated: (clan_event_created: ApiCreateEventRequest) => void;
|
958
958
|
}
|
959
959
|
|
960
960
|
/** Reports an error received from a socket message. */
|
@@ -1100,8 +1100,8 @@ export class DefaultSocket implements Socket {
|
|
1100
1100
|
mentions: mentions,
|
1101
1101
|
attachments: attachments,
|
1102
1102
|
references: references,
|
1103
|
-
|
1104
|
-
|
1103
|
+
hide_editted: message.channel_message.hide_editted,
|
1104
|
+
is_public: message.channel_message.is_public
|
1105
1105
|
};
|
1106
1106
|
this.onchannelmessage(e);
|
1107
1107
|
} else if (message.message_typing_event) {
|