mezon-js 2.8.29 → 2.8.32
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/mezon-js.cjs.js +2 -2
- package/dist/mezon-js.esm.mjs +2 -2
- package/dist/socket.d.ts +14 -7
- package/package.json +1 -1
- package/socket.ts +23 -13
package/dist/mezon-js.cjs.js
CHANGED
@@ -5223,9 +5223,9 @@ var _DefaultSocket = class _DefaultSocket {
|
|
5223
5223
|
return response.notification_clan_setting_event;
|
5224
5224
|
});
|
5225
5225
|
}
|
5226
|
-
getNotificationReactMessage(
|
5226
|
+
getNotificationReactMessage(channel_id) {
|
5227
5227
|
return __async(this, null, function* () {
|
5228
|
-
const response = yield this.send({ notifi_react_message_event: {
|
5228
|
+
const response = yield this.send({ notifi_react_message_event: { channel_id } });
|
5229
5229
|
return response.notifi_react_message_event;
|
5230
5230
|
});
|
5231
5231
|
}
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -5194,9 +5194,9 @@ var _DefaultSocket = class _DefaultSocket {
|
|
5194
5194
|
return response.notification_clan_setting_event;
|
5195
5195
|
});
|
5196
5196
|
}
|
5197
|
-
getNotificationReactMessage(
|
5197
|
+
getNotificationReactMessage(channel_id) {
|
5198
5198
|
return __async(this, null, function* () {
|
5199
|
-
const response = yield this.send({ notifi_react_message_event: {
|
5199
|
+
const response = yield this.send({ notifi_react_message_event: { channel_id } });
|
5200
5200
|
return response.notifi_react_message_event;
|
5201
5201
|
});
|
5202
5202
|
}
|
package/dist/socket.d.ts
CHANGED
@@ -442,6 +442,7 @@ interface StatusUpdate {
|
|
442
442
|
}
|
443
443
|
export interface ClanNameExistedEvent {
|
444
444
|
clan_name: string;
|
445
|
+
exist: boolean;
|
445
446
|
}
|
446
447
|
/** */
|
447
448
|
export interface StrickerListedEvent {
|
@@ -502,26 +503,32 @@ export interface HashtagDm {
|
|
502
503
|
parrent_id?: string;
|
503
504
|
}
|
504
505
|
export interface NotificationChannelSettingEvent {
|
505
|
-
active?: number;
|
506
|
-
id?: string;
|
507
|
-
notification_setting_type?: number;
|
508
|
-
time_mute?: string;
|
509
506
|
channel_id?: string;
|
507
|
+
notification_user_channel?: NotificationUserChannel;
|
510
508
|
}
|
511
|
-
export interface
|
509
|
+
export interface NotificationUserChannel {
|
512
510
|
active?: number;
|
513
511
|
id?: string;
|
514
512
|
notification_setting_type?: number;
|
515
513
|
time_mute?: string;
|
514
|
+
}
|
515
|
+
export interface NotificationCategorySettingEvent {
|
516
516
|
category_id?: string;
|
517
|
+
notification_user_channel?: NotificationUserChannel;
|
517
518
|
}
|
518
519
|
export interface NotificationClanSettingEvent {
|
520
|
+
clan_id?: string;
|
521
|
+
notification_setting?: NotificationSetting;
|
522
|
+
}
|
523
|
+
export interface NotificationSetting {
|
519
524
|
id?: string;
|
520
525
|
notification_setting_type?: number;
|
521
|
-
clan_id?: string;
|
522
526
|
}
|
523
527
|
export interface NotifiReactMessageEvent {
|
524
528
|
channel_id?: string;
|
529
|
+
notifi_react_message?: NotifiReactMessage;
|
530
|
+
}
|
531
|
+
export interface NotifiReactMessage {
|
525
532
|
id?: string;
|
526
533
|
user_id?: string;
|
527
534
|
channel_id_req?: string;
|
@@ -709,7 +716,7 @@ export declare class DefaultSocket implements Socket {
|
|
709
716
|
getNotificationChannelSetting(channel_id: string): Promise<NotificationChannelSettingEvent>;
|
710
717
|
getNotificationCategorySetting(category_id: string): Promise<NotificationCategorySettingEvent>;
|
711
718
|
getNotificationClanSetting(clan_id: string): Promise<NotificationClanSettingEvent>;
|
712
|
-
getNotificationReactMessage(
|
719
|
+
getNotificationReactMessage(channel_id: string): Promise<NotifiReactMessageEvent>;
|
713
720
|
private pingPong;
|
714
721
|
}
|
715
722
|
export {};
|
package/package.json
CHANGED
package/socket.ts
CHANGED
@@ -624,6 +624,7 @@ interface StatusUpdate {
|
|
624
624
|
}
|
625
625
|
export interface ClanNameExistedEvent {
|
626
626
|
clan_name: string;
|
627
|
+
exist: boolean;
|
627
628
|
}
|
628
629
|
|
629
630
|
|
@@ -732,19 +733,13 @@ export interface HashtagDm {
|
|
732
733
|
}
|
733
734
|
|
734
735
|
export interface NotificationChannelSettingEvent {
|
735
|
-
//
|
736
|
-
active?: number;
|
737
|
-
//
|
738
|
-
id?: string;
|
739
|
-
//
|
740
|
-
notification_setting_type?: number;
|
741
|
-
//
|
742
|
-
time_mute?: string;
|
743
736
|
// The channel id.
|
744
737
|
channel_id?: string;
|
738
|
+
//
|
739
|
+
notification_user_channel?: NotificationUserChannel;
|
745
740
|
}
|
746
741
|
|
747
|
-
export interface
|
742
|
+
export interface NotificationUserChannel {
|
748
743
|
//
|
749
744
|
active?: number;
|
750
745
|
//
|
@@ -753,22 +748,37 @@ export interface NotificationCategorySettingEvent {
|
|
753
748
|
notification_setting_type?: number;
|
754
749
|
//
|
755
750
|
time_mute?: string;
|
751
|
+
}
|
752
|
+
|
753
|
+
export interface NotificationCategorySettingEvent {
|
756
754
|
//
|
757
755
|
category_id?: string;
|
756
|
+
//
|
757
|
+
notification_user_channel?: NotificationUserChannel;
|
758
758
|
}
|
759
759
|
|
760
760
|
export interface NotificationClanSettingEvent {
|
761
|
+
// The clan of this channel
|
762
|
+
clan_id?: string;
|
763
|
+
//
|
764
|
+
notification_setting?: NotificationSetting;
|
765
|
+
}
|
766
|
+
|
767
|
+
export interface NotificationSetting {
|
761
768
|
//
|
762
769
|
id?: string;
|
763
770
|
//
|
764
771
|
notification_setting_type?: number;
|
765
|
-
// The clan of this channel
|
766
|
-
clan_id?: string;
|
767
772
|
}
|
768
773
|
|
769
774
|
export interface NotifiReactMessageEvent {
|
770
775
|
//
|
771
776
|
channel_id?: string;
|
777
|
+
//
|
778
|
+
notifi_react_message?: NotifiReactMessage;
|
779
|
+
}
|
780
|
+
|
781
|
+
export interface NotifiReactMessage {
|
772
782
|
//
|
773
783
|
id?: string;
|
774
784
|
//
|
@@ -1518,8 +1528,8 @@ export class DefaultSocket implements Socket {
|
|
1518
1528
|
return response.notification_clan_setting_event
|
1519
1529
|
}
|
1520
1530
|
|
1521
|
-
async getNotificationReactMessage(
|
1522
|
-
const response = await this.send({notifi_react_message_event: {
|
1531
|
+
async getNotificationReactMessage(channel_id: string): Promise<NotifiReactMessageEvent> {
|
1532
|
+
const response = await this.send({notifi_react_message_event: {channel_id: channel_id}})
|
1523
1533
|
return response.notifi_react_message_event
|
1524
1534
|
}
|
1525
1535
|
|