mezon-js 2.9.63 → 2.9.64
Sign up to get free protection for your applications and to get access to all the features.
- package/api.gen.ts +2 -0
- package/client.ts +1 -1
- package/dist/api.gen.d.ts +1 -0
- package/dist/client.d.ts +1 -1
- package/dist/mezon-js.cjs.js +7 -0
- package/dist/mezon-js.esm.mjs +7 -0
- package/dist/socket.d.ts +7 -0
- package/package.json +1 -1
- package/socket.ts +19 -0
package/api.gen.ts
CHANGED
package/client.ts
CHANGED
@@ -2885,7 +2885,7 @@ export class Client {
|
|
2885
2885
|
/** Set default notification category*/
|
2886
2886
|
async setNotificationCategory(
|
2887
2887
|
session: Session,
|
2888
|
-
request:
|
2888
|
+
request: ApiSetNotificationRequest
|
2889
2889
|
): Promise<boolean> {
|
2890
2890
|
if (
|
2891
2891
|
this.autoRefreshSession &&
|
package/dist/api.gen.d.ts
CHANGED
package/dist/client.d.ts
CHANGED
@@ -520,7 +520,7 @@ export declare class Client {
|
|
520
520
|
/** update channel private*/
|
521
521
|
updateChannelPrivate(session: Session, request: ApiChangeChannelPrivateRequest): Promise<boolean>;
|
522
522
|
/** Set default notification category*/
|
523
|
-
setNotificationCategory(session: Session, request:
|
523
|
+
setNotificationCategory(session: Session, request: ApiSetNotificationRequest): Promise<boolean>;
|
524
524
|
deleteNotificationCategory(session: Session, category_id: string): Promise<boolean>;
|
525
525
|
deleteNotificationChannel(session: Session, channel_id: string): Promise<boolean>;
|
526
526
|
/** */
|
package/dist/mezon-js.cjs.js
CHANGED
@@ -6553,6 +6553,8 @@ var _DefaultSocket = class _DefaultSocket {
|
|
6553
6553
|
this.onpermissionset(message.permission_set_event);
|
6554
6554
|
} else if (message.permission_changed_event) {
|
6555
6555
|
this.onpermissionchanged(message.permission_changed_event);
|
6556
|
+
} else if (message.unmute_event) {
|
6557
|
+
this.onunmuteevent(message.unmute_event);
|
6556
6558
|
} else if (message.token_sent_event) {
|
6557
6559
|
this.ontokensent(message.token_sent_event);
|
6558
6560
|
} else if (message.message_button_clicked) {
|
@@ -6824,6 +6826,11 @@ var _DefaultSocket = class _DefaultSocket {
|
|
6824
6826
|
console.log(permission_changed_event);
|
6825
6827
|
}
|
6826
6828
|
}
|
6829
|
+
onunmuteevent(unmute_event) {
|
6830
|
+
if (this.verbose && window && window.console) {
|
6831
|
+
console.log(unmute_event);
|
6832
|
+
}
|
6833
|
+
}
|
6827
6834
|
ontokensent(tokenSentEvent) {
|
6828
6835
|
if (this.verbose && window && window.console) {
|
6829
6836
|
console.log(tokenSentEvent);
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -6524,6 +6524,8 @@ var _DefaultSocket = class _DefaultSocket {
|
|
6524
6524
|
this.onpermissionset(message.permission_set_event);
|
6525
6525
|
} else if (message.permission_changed_event) {
|
6526
6526
|
this.onpermissionchanged(message.permission_changed_event);
|
6527
|
+
} else if (message.unmute_event) {
|
6528
|
+
this.onunmuteevent(message.unmute_event);
|
6527
6529
|
} else if (message.token_sent_event) {
|
6528
6530
|
this.ontokensent(message.token_sent_event);
|
6529
6531
|
} else if (message.message_button_clicked) {
|
@@ -6795,6 +6797,11 @@ var _DefaultSocket = class _DefaultSocket {
|
|
6795
6797
|
console.log(permission_changed_event);
|
6796
6798
|
}
|
6797
6799
|
}
|
6800
|
+
onunmuteevent(unmute_event) {
|
6801
|
+
if (this.verbose && window && window.console) {
|
6802
|
+
console.log(unmute_event);
|
6803
|
+
}
|
6804
|
+
}
|
6798
6805
|
ontokensent(tokenSentEvent) {
|
6799
6806
|
if (this.verbose && window && window.console) {
|
6800
6807
|
console.log(tokenSentEvent);
|
package/dist/socket.d.ts
CHANGED
@@ -128,6 +128,11 @@ export interface LastPinMessageEvent {
|
|
128
128
|
operation: number;
|
129
129
|
is_public: boolean;
|
130
130
|
}
|
131
|
+
export interface UnmuteEvent {
|
132
|
+
channel_id: string;
|
133
|
+
category_id: string;
|
134
|
+
clan_id: string;
|
135
|
+
}
|
131
136
|
/** Last seen message by user */
|
132
137
|
export interface LastSeenMessageEvent {
|
133
138
|
clan_id: string;
|
@@ -698,6 +703,7 @@ export interface Socket {
|
|
698
703
|
onstreamingchannelleaved: (streaming_leaved_event: StreamingLeavedEvent) => void;
|
699
704
|
onpermissionset: (permission_set_event: PermissionSet) => void;
|
700
705
|
onpermissionchanged: (permission_changed_event: PermissionChangedEvent) => void;
|
706
|
+
onunmuteevent: (unmute_event: UnmuteEvent) => void;
|
701
707
|
ontokensent: (token: TokenSentEvent) => void;
|
702
708
|
}
|
703
709
|
/** Reports an error received from a socket message. */
|
@@ -771,6 +777,7 @@ export declare class DefaultSocket implements Socket {
|
|
771
777
|
onstreamingchannelleaved(streaming_leaved_event: StreamingLeavedEvent): void;
|
772
778
|
onpermissionset(permission_set_event: PermissionSet): void;
|
773
779
|
onpermissionchanged(permission_changed_event: PermissionChangedEvent): void;
|
780
|
+
onunmuteevent(unmute_event: UnmuteEvent): void;
|
774
781
|
ontokensent(tokenSentEvent: TokenSentEvent): void;
|
775
782
|
handleMessageButtonClick(messageButtonClicked: MessageButtonClicked): void;
|
776
783
|
send(message: ChannelJoin | ChannelLeave | ChannelMessageSend | ChannelMessageUpdate | CustomStatusEvent | ChannelMessageRemove | MessageTypingEvent | LastSeenMessageEvent | Rpc | StatusFollow | StatusUnfollow | StatusUpdate | Ping, sendTimeout?: number): Promise<any>;
|
package/package.json
CHANGED
package/socket.ts
CHANGED
@@ -170,6 +170,15 @@ export interface LastPinMessageEvent {
|
|
170
170
|
is_public: boolean;
|
171
171
|
}
|
172
172
|
|
173
|
+
export interface UnmuteEvent {
|
174
|
+
// channel id
|
175
|
+
channel_id: string;
|
176
|
+
// category_id
|
177
|
+
category_id: string;
|
178
|
+
// clan_id
|
179
|
+
clan_id: string;
|
180
|
+
}
|
181
|
+
|
173
182
|
/** Last seen message by user */
|
174
183
|
export interface LastSeenMessageEvent {
|
175
184
|
// The clan id
|
@@ -1014,6 +1023,8 @@ export interface Socket {
|
|
1014
1023
|
|
1015
1024
|
onpermissionchanged: (permission_changed_event: PermissionChangedEvent) => void;
|
1016
1025
|
|
1026
|
+
onunmuteevent: (unmute_event: UnmuteEvent) => void;
|
1027
|
+
|
1017
1028
|
ontokensent: (token: TokenSentEvent) => void;
|
1018
1029
|
}
|
1019
1030
|
|
@@ -1218,6 +1229,8 @@ export class DefaultSocket implements Socket {
|
|
1218
1229
|
this.onpermissionset(<PermissionSet>message.permission_set_event);
|
1219
1230
|
} else if(message.permission_changed_event){
|
1220
1231
|
this.onpermissionchanged(<PermissionChangedEvent>message.permission_changed_event);
|
1232
|
+
} else if(message.unmute_event){
|
1233
|
+
this.onunmuteevent(<UnmuteEvent>message.unmute_event);
|
1221
1234
|
} else if (message.token_sent_event) {
|
1222
1235
|
this.ontokensent(<TokenSentEvent>message.token_sent_event);
|
1223
1236
|
} else if (message.message_button_clicked){
|
@@ -1542,6 +1555,12 @@ export class DefaultSocket implements Socket {
|
|
1542
1555
|
}
|
1543
1556
|
}
|
1544
1557
|
|
1558
|
+
onunmuteevent(unmute_event: UnmuteEvent){
|
1559
|
+
if (this.verbose && window && window.console) {
|
1560
|
+
console.log(unmute_event);
|
1561
|
+
}
|
1562
|
+
}
|
1563
|
+
|
1545
1564
|
ontokensent(tokenSentEvent: TokenSentEvent) {
|
1546
1565
|
if (this.verbose && window && window.console) {
|
1547
1566
|
console.log(tokenSentEvent);
|