mezon-js-protobuf 1.7.2 → 1.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/api.ts +18 -1
- package/dist/mezon-js-protobuf/api/api.d.ts +6 -0
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +183 -141
- package/dist/mezon-js-protobuf.cjs.js +126 -2
- package/dist/mezon-js-protobuf.esm.mjs +126 -2
- package/package.json +1 -1
- package/rtapi/realtime.ts +26 -1
package/api/api.ts
CHANGED
|
@@ -2184,6 +2184,8 @@ export interface NotificationUserChannel {
|
|
|
2184
2184
|
| undefined;
|
|
2185
2185
|
/** */
|
|
2186
2186
|
active: number;
|
|
2187
|
+
/** */
|
|
2188
|
+
channel_id: string;
|
|
2187
2189
|
}
|
|
2188
2190
|
|
|
2189
2191
|
/** Notification channel */
|
|
@@ -19858,7 +19860,7 @@ export const PinMessagesList = {
|
|
|
19858
19860
|
};
|
|
19859
19861
|
|
|
19860
19862
|
function createBaseNotificationUserChannel(): NotificationUserChannel {
|
|
19861
|
-
return { id: "", notification_setting_type: 0, time_mute: undefined, active: 0 };
|
|
19863
|
+
return { id: "", notification_setting_type: 0, time_mute: undefined, active: 0, channel_id: "" };
|
|
19862
19864
|
}
|
|
19863
19865
|
|
|
19864
19866
|
export const NotificationUserChannel = {
|
|
@@ -19875,6 +19877,9 @@ export const NotificationUserChannel = {
|
|
|
19875
19877
|
if (message.active !== 0) {
|
|
19876
19878
|
writer.uint32(32).int32(message.active);
|
|
19877
19879
|
}
|
|
19880
|
+
if (message.channel_id !== "") {
|
|
19881
|
+
writer.uint32(42).string(message.channel_id);
|
|
19882
|
+
}
|
|
19878
19883
|
return writer;
|
|
19879
19884
|
},
|
|
19880
19885
|
|
|
@@ -19913,6 +19918,13 @@ export const NotificationUserChannel = {
|
|
|
19913
19918
|
|
|
19914
19919
|
message.active = reader.int32();
|
|
19915
19920
|
continue;
|
|
19921
|
+
case 5:
|
|
19922
|
+
if (tag !== 42) {
|
|
19923
|
+
break;
|
|
19924
|
+
}
|
|
19925
|
+
|
|
19926
|
+
message.channel_id = reader.string();
|
|
19927
|
+
continue;
|
|
19916
19928
|
}
|
|
19917
19929
|
if ((tag & 7) === 4 || tag === 0) {
|
|
19918
19930
|
break;
|
|
@@ -19930,6 +19942,7 @@ export const NotificationUserChannel = {
|
|
|
19930
19942
|
: 0,
|
|
19931
19943
|
time_mute: isSet(object.time_mute) ? fromJsonTimestamp(object.time_mute) : undefined,
|
|
19932
19944
|
active: isSet(object.active) ? globalThis.Number(object.active) : 0,
|
|
19945
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
19933
19946
|
};
|
|
19934
19947
|
},
|
|
19935
19948
|
|
|
@@ -19947,6 +19960,9 @@ export const NotificationUserChannel = {
|
|
|
19947
19960
|
if (message.active !== 0) {
|
|
19948
19961
|
obj.active = Math.round(message.active);
|
|
19949
19962
|
}
|
|
19963
|
+
if (message.channel_id !== "") {
|
|
19964
|
+
obj.channel_id = message.channel_id;
|
|
19965
|
+
}
|
|
19950
19966
|
return obj;
|
|
19951
19967
|
},
|
|
19952
19968
|
|
|
@@ -19959,6 +19975,7 @@ export const NotificationUserChannel = {
|
|
|
19959
19975
|
message.notification_setting_type = object.notification_setting_type ?? 0;
|
|
19960
19976
|
message.time_mute = object.time_mute ?? undefined;
|
|
19961
19977
|
message.active = object.active ?? 0;
|
|
19978
|
+
message.channel_id = object.channel_id ?? "";
|
|
19962
19979
|
return message;
|
|
19963
19980
|
},
|
|
19964
19981
|
};
|
|
@@ -1659,6 +1659,8 @@ export interface NotificationUserChannel {
|
|
|
1659
1659
|
time_mute: Date | undefined;
|
|
1660
1660
|
/** */
|
|
1661
1661
|
active: number;
|
|
1662
|
+
/** */
|
|
1663
|
+
channel_id: string;
|
|
1662
1664
|
}
|
|
1663
1665
|
/** Notification channel */
|
|
1664
1666
|
export interface NotifiReactMessage {
|
|
@@ -13645,22 +13647,26 @@ export declare const NotificationUserChannel: {
|
|
|
13645
13647
|
notification_setting_type?: number | undefined;
|
|
13646
13648
|
time_mute?: Date | undefined;
|
|
13647
13649
|
active?: number | undefined;
|
|
13650
|
+
channel_id?: string | undefined;
|
|
13648
13651
|
} & {
|
|
13649
13652
|
id?: string | undefined;
|
|
13650
13653
|
notification_setting_type?: number | undefined;
|
|
13651
13654
|
time_mute?: Date | undefined;
|
|
13652
13655
|
active?: number | undefined;
|
|
13656
|
+
channel_id?: string | undefined;
|
|
13653
13657
|
} & { [K in Exclude<keyof I, keyof NotificationUserChannel>]: never; }>(base?: I | undefined): NotificationUserChannel;
|
|
13654
13658
|
fromPartial<I_1 extends {
|
|
13655
13659
|
id?: string | undefined;
|
|
13656
13660
|
notification_setting_type?: number | undefined;
|
|
13657
13661
|
time_mute?: Date | undefined;
|
|
13658
13662
|
active?: number | undefined;
|
|
13663
|
+
channel_id?: string | undefined;
|
|
13659
13664
|
} & {
|
|
13660
13665
|
id?: string | undefined;
|
|
13661
13666
|
notification_setting_type?: number | undefined;
|
|
13662
13667
|
time_mute?: Date | undefined;
|
|
13663
13668
|
active?: number | undefined;
|
|
13669
|
+
channel_id?: string | undefined;
|
|
13664
13670
|
} & { [K_1 in Exclude<keyof I_1, keyof NotificationUserChannel>]: never; }>(object: I_1): NotificationUserChannel;
|
|
13665
13671
|
};
|
|
13666
13672
|
export declare const NotifiReactMessage: {
|