mezon-js 2.7.93 → 2.7.95
Sign up to get free protection for your applications and to get access to all the features.
- package/api.gen.ts +10 -10
- package/client.ts +3 -3
- package/dist/api.gen.d.ts +9 -9
- package/dist/client.d.ts +3 -3
- package/dist/mezon-js.cjs.js +3 -3
- package/dist/mezon-js.esm.mjs +3 -3
- package/package.json +1 -1
package/api.gen.ts
CHANGED
@@ -1035,7 +1035,7 @@ export interface ApiNotificationChannelCategoySetting {
|
|
1035
1035
|
//
|
1036
1036
|
id?: string;
|
1037
1037
|
//
|
1038
|
-
notification_setting_type?:
|
1038
|
+
notification_setting_type?: number;
|
1039
1039
|
}
|
1040
1040
|
|
1041
1041
|
/** */
|
@@ -1057,7 +1057,7 @@ export interface ApiNotificationSetting {
|
|
1057
1057
|
//
|
1058
1058
|
id?: string;
|
1059
1059
|
//
|
1060
|
-
notification_setting_type?:
|
1060
|
+
notification_setting_type?: number;
|
1061
1061
|
}
|
1062
1062
|
|
1063
1063
|
/** */
|
@@ -1067,7 +1067,7 @@ export interface ApiNotificationUserChannel {
|
|
1067
1067
|
//
|
1068
1068
|
id?: string;
|
1069
1069
|
//
|
1070
|
-
notification_setting_type?:
|
1070
|
+
notification_setting_type?: number;
|
1071
1071
|
//
|
1072
1072
|
time_mute?: string;
|
1073
1073
|
}
|
@@ -1313,7 +1313,7 @@ export interface ApiSetDefaultNotificationRequest {
|
|
1313
1313
|
//
|
1314
1314
|
clan_id?: string;
|
1315
1315
|
//
|
1316
|
-
notification_type?:
|
1316
|
+
notification_type?: number;
|
1317
1317
|
}
|
1318
1318
|
|
1319
1319
|
/** */
|
@@ -1323,15 +1323,15 @@ export interface ApiSetMuteNotificationRequest {
|
|
1323
1323
|
//
|
1324
1324
|
channel_id?: string;
|
1325
1325
|
//
|
1326
|
-
notification_type?:
|
1326
|
+
notification_type?: number;
|
1327
1327
|
}
|
1328
1328
|
|
1329
1329
|
/** */
|
1330
1330
|
export interface ApiSetNotificationRequest {
|
1331
1331
|
//
|
1332
|
-
|
1332
|
+
channel_category_id?: string;
|
1333
1333
|
//
|
1334
|
-
notification_type?:
|
1334
|
+
notification_type?: number;
|
1335
1335
|
//
|
1336
1336
|
time_mute?: string;
|
1337
1337
|
}
|
@@ -1511,7 +1511,7 @@ export interface ApiVoiceChannelUser {
|
|
1511
1511
|
//Cursor for the next page of results, if any.
|
1512
1512
|
id?: string;
|
1513
1513
|
//
|
1514
|
-
channel_id?: string;
|
1514
|
+
channel_id?: string;
|
1515
1515
|
//
|
1516
1516
|
participant?: string;
|
1517
1517
|
//User for a channel.
|
@@ -4865,7 +4865,7 @@ export class MezonApi {
|
|
4865
4865
|
|
4866
4866
|
/** set notification user channel. */
|
4867
4867
|
setNotificationCategorySetting(bearerToken: string,
|
4868
|
-
body:
|
4868
|
+
body:ApiSetNotificationRequest,
|
4869
4869
|
options: any = {}): Promise<any> {
|
4870
4870
|
|
4871
4871
|
if (body === null || body === undefined) {
|
@@ -4935,7 +4935,7 @@ export class MezonApi {
|
|
4935
4935
|
/** notification selected */
|
4936
4936
|
getNotificationCategorySetting(bearerToken: string,
|
4937
4937
|
categoryId?:string,
|
4938
|
-
options: any = {}): Promise<
|
4938
|
+
options: any = {}): Promise<ApiNotificationUserChannel> {
|
4939
4939
|
|
4940
4940
|
const urlPath = "/v2/notificationusercategory/get";
|
4941
4941
|
const queryParams = new Map<string, any>();
|
package/client.ts
CHANGED
@@ -134,9 +134,9 @@ export enum ChannelStreamMode {
|
|
134
134
|
}
|
135
135
|
|
136
136
|
export enum NotificationType {
|
137
|
-
ALL_MESSAGE =
|
138
|
-
|
139
|
-
|
137
|
+
ALL_MESSAGE = 1,
|
138
|
+
MENTION_MESSAGE = 2,
|
139
|
+
NOTHING_MESSAGE = 3,
|
140
140
|
}
|
141
141
|
|
142
142
|
/** Response for an RPC function executed on the server. */
|
package/dist/api.gen.d.ts
CHANGED
@@ -594,7 +594,7 @@ export interface ApiNotificationChannelCategoySetting {
|
|
594
594
|
channel_category_label?: string;
|
595
595
|
channel_category_title?: string;
|
596
596
|
id?: string;
|
597
|
-
notification_setting_type?:
|
597
|
+
notification_setting_type?: number;
|
598
598
|
}
|
599
599
|
/** */
|
600
600
|
export interface ApiNotificationChannelCategoySettingsList {
|
@@ -608,13 +608,13 @@ export interface ApiNotificationList {
|
|
608
608
|
/** */
|
609
609
|
export interface ApiNotificationSetting {
|
610
610
|
id?: string;
|
611
|
-
notification_setting_type?:
|
611
|
+
notification_setting_type?: number;
|
612
612
|
}
|
613
613
|
/** */
|
614
614
|
export interface ApiNotificationUserChannel {
|
615
615
|
active?: number;
|
616
616
|
id?: string;
|
617
|
-
notification_setting_type?:
|
617
|
+
notification_setting_type?: number;
|
618
618
|
time_mute?: string;
|
619
619
|
}
|
620
620
|
/** */
|
@@ -756,18 +756,18 @@ export interface ApiSessionRefreshRequest {
|
|
756
756
|
export interface ApiSetDefaultNotificationRequest {
|
757
757
|
category_id?: string;
|
758
758
|
clan_id?: string;
|
759
|
-
notification_type?:
|
759
|
+
notification_type?: number;
|
760
760
|
}
|
761
761
|
/** */
|
762
762
|
export interface ApiSetMuteNotificationRequest {
|
763
763
|
active?: number;
|
764
764
|
channel_id?: string;
|
765
|
-
notification_type?:
|
765
|
+
notification_type?: number;
|
766
766
|
}
|
767
767
|
/** */
|
768
768
|
export interface ApiSetNotificationRequest {
|
769
|
-
|
770
|
-
notification_type?:
|
769
|
+
channel_category_id?: string;
|
770
|
+
notification_type?: number;
|
771
771
|
time_mute?: string;
|
772
772
|
}
|
773
773
|
/** */
|
@@ -1118,11 +1118,11 @@ export declare class MezonApi {
|
|
1118
1118
|
/** set notification user channel. */
|
1119
1119
|
setNotificationClanSetting(bearerToken: string, body: ApiSetDefaultNotificationRequest, options?: any): Promise<any>;
|
1120
1120
|
/** set notification user channel. */
|
1121
|
-
setNotificationCategorySetting(bearerToken: string, body:
|
1121
|
+
setNotificationCategorySetting(bearerToken: string, body: ApiSetNotificationRequest, options?: any): Promise<any>;
|
1122
1122
|
/** */
|
1123
1123
|
deleteNotificationCategorySetting(bearerToken: string, categoryId?: string, options?: any): Promise<any>;
|
1124
1124
|
/** notification selected */
|
1125
|
-
getNotificationCategorySetting(bearerToken: string, categoryId?: string, options?: any): Promise<
|
1125
|
+
getNotificationCategorySetting(bearerToken: string, categoryId?: string, options?: any): Promise<ApiNotificationUserChannel>;
|
1126
1126
|
/** */
|
1127
1127
|
deleteNotificationChannel(bearerToken: string, channelId?: string, options?: any): Promise<any>;
|
1128
1128
|
/** notification selected */
|
package/dist/client.d.ts
CHANGED
@@ -31,9 +31,9 @@ export declare enum ChannelStreamMode {
|
|
31
31
|
STREAM_MODE_DM = 4
|
32
32
|
}
|
33
33
|
export declare enum NotificationType {
|
34
|
-
ALL_MESSAGE =
|
35
|
-
|
36
|
-
|
34
|
+
ALL_MESSAGE = 1,
|
35
|
+
MENTION_MESSAGE = 2,
|
36
|
+
NOTHING_MESSAGE = 3
|
37
37
|
}
|
38
38
|
/** Response for an RPC function executed on the server. */
|
39
39
|
export interface RpcResponse {
|
package/dist/mezon-js.cjs.js
CHANGED
@@ -5190,9 +5190,9 @@ var ChannelStreamMode = /* @__PURE__ */ ((ChannelStreamMode2) => {
|
|
5190
5190
|
return ChannelStreamMode2;
|
5191
5191
|
})(ChannelStreamMode || {});
|
5192
5192
|
var NotificationType = /* @__PURE__ */ ((NotificationType2) => {
|
5193
|
-
NotificationType2["ALL_MESSAGE"] = "
|
5194
|
-
NotificationType2["
|
5195
|
-
NotificationType2["
|
5193
|
+
NotificationType2[NotificationType2["ALL_MESSAGE"] = 1] = "ALL_MESSAGE";
|
5194
|
+
NotificationType2[NotificationType2["MENTION_MESSAGE"] = 2] = "MENTION_MESSAGE";
|
5195
|
+
NotificationType2[NotificationType2["NOTHING_MESSAGE"] = 3] = "NOTHING_MESSAGE";
|
5196
5196
|
return NotificationType2;
|
5197
5197
|
})(NotificationType || {});
|
5198
5198
|
var Client = class {
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -5161,9 +5161,9 @@ var ChannelStreamMode = /* @__PURE__ */ ((ChannelStreamMode2) => {
|
|
5161
5161
|
return ChannelStreamMode2;
|
5162
5162
|
})(ChannelStreamMode || {});
|
5163
5163
|
var NotificationType = /* @__PURE__ */ ((NotificationType2) => {
|
5164
|
-
NotificationType2["ALL_MESSAGE"] = "
|
5165
|
-
NotificationType2["
|
5166
|
-
NotificationType2["
|
5164
|
+
NotificationType2[NotificationType2["ALL_MESSAGE"] = 1] = "ALL_MESSAGE";
|
5165
|
+
NotificationType2[NotificationType2["MENTION_MESSAGE"] = 2] = "MENTION_MESSAGE";
|
5166
|
+
NotificationType2[NotificationType2["NOTHING_MESSAGE"] = 3] = "NOTHING_MESSAGE";
|
5167
5167
|
return NotificationType2;
|
5168
5168
|
})(NotificationType || {});
|
5169
5169
|
var Client = class {
|