mezon-js 2.8.43 → 2.8.46
Sign up to get free protection for your applications and to get access to all the features.
- package/api/api.ts +19515 -19515
- package/api.gen.ts +46 -52
- package/client.ts +14 -14
- package/dist/api.gen.d.ts +8 -16
- package/dist/client.d.ts +4 -3
- package/dist/mezon-js.cjs.js +50 -39
- package/dist/mezon-js.esm.mjs +50 -39
- package/dist/socket.d.ts +12 -0
- package/google/protobuf/timestamp.ts +220 -220
- package/google/protobuf/wrappers.ts +626 -626
- package/package.json +2 -1
- package/rtapi/realtime.ts +6670 -6670
- package/socket.ts +25 -0
- package/dist/api1.gen.d.ts +0 -1096
package/socket.ts
CHANGED
@@ -664,6 +664,23 @@ export interface NotifiReactMessage {
|
|
664
664
|
channel_id_req?: string;
|
665
665
|
}
|
666
666
|
|
667
|
+
export interface NotificationChannelCategorySetting {
|
668
|
+
// Notification id
|
669
|
+
id: string;
|
670
|
+
//
|
671
|
+
channel_category_label :string;
|
672
|
+
// Notification title
|
673
|
+
notification_setting_type :number;
|
674
|
+
//
|
675
|
+
channel_category_title : string;
|
676
|
+
}
|
677
|
+
|
678
|
+
export interface NotificationChannelCategorySettingEvent {
|
679
|
+
clan_id? : string;
|
680
|
+
notification_channel_category_settings_list?: NotificationChannelCategorySetting[]
|
681
|
+
}
|
682
|
+
|
683
|
+
|
667
684
|
/** A socket connection to Mezon server. */
|
668
685
|
export interface Socket {
|
669
686
|
/** Connection is Open */
|
@@ -833,6 +850,8 @@ export interface Socket {
|
|
833
850
|
getNotificationReactMessage(channel_id_req: string): Promise<NotifiReactMessageEvent>;
|
834
851
|
|
835
852
|
GetPermissionByRoleIdChannelId(role_id: string, channel_id: string): Promise<PermissionRoleChannelListEvent>;
|
853
|
+
|
854
|
+
getNotificationChannelCategorySetting(clan_id : string): Promise<NotificationChannelCategorySettingEvent>;
|
836
855
|
}
|
837
856
|
|
838
857
|
/** Reports an error received from a socket message. */
|
@@ -1420,6 +1439,12 @@ export class DefaultSocket implements Socket {
|
|
1420
1439
|
return response.notifi_react_message_event
|
1421
1440
|
}
|
1422
1441
|
|
1442
|
+
async getNotificationChannelCategorySetting(clan_id: string): Promise<NotificationChannelCategorySettingEvent> {
|
1443
|
+
const response = await this.send({notification_channel_category_setting_event: {clan_id : clan_id}})
|
1444
|
+
return response.notification_channel_category_setting_event
|
1445
|
+
}
|
1446
|
+
|
1447
|
+
|
1423
1448
|
private async pingPong(): Promise<void> {
|
1424
1449
|
if (!this.adapter.isOpen()) {
|
1425
1450
|
return;
|