mezon-js-protobuf 1.4.78 → 1.4.79
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 +12 -9
- package/dist/mezon-js-protobuf/api/api.d.ts +8 -5
- package/package.json +1 -1
package/api/api.ts
CHANGED
|
@@ -2199,8 +2199,11 @@ export interface NotificationSettingList {
|
|
|
2199
2199
|
|
|
2200
2200
|
/** set notification */
|
|
2201
2201
|
export interface SetNotificationRequest {
|
|
2202
|
-
|
|
2202
|
+
/** channelId or categoryId */
|
|
2203
|
+
channel_category_id: string;
|
|
2204
|
+
/** notification_type */
|
|
2203
2205
|
notification_type: number;
|
|
2206
|
+
/** time mute channel category */
|
|
2204
2207
|
time_mute: Date | undefined;
|
|
2205
2208
|
}
|
|
2206
2209
|
|
|
@@ -19013,13 +19016,13 @@ export const NotificationSettingList = {
|
|
|
19013
19016
|
};
|
|
19014
19017
|
|
|
19015
19018
|
function createBaseSetNotificationRequest(): SetNotificationRequest {
|
|
19016
|
-
return {
|
|
19019
|
+
return { channel_category_id: "", notification_type: 0, time_mute: undefined };
|
|
19017
19020
|
}
|
|
19018
19021
|
|
|
19019
19022
|
export const SetNotificationRequest = {
|
|
19020
19023
|
encode(message: SetNotificationRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
19021
|
-
if (message.
|
|
19022
|
-
writer.uint32(10).string(message.
|
|
19024
|
+
if (message.channel_category_id !== "") {
|
|
19025
|
+
writer.uint32(10).string(message.channel_category_id);
|
|
19023
19026
|
}
|
|
19024
19027
|
if (message.notification_type !== 0) {
|
|
19025
19028
|
writer.uint32(16).int32(message.notification_type);
|
|
@@ -19042,7 +19045,7 @@ export const SetNotificationRequest = {
|
|
|
19042
19045
|
break;
|
|
19043
19046
|
}
|
|
19044
19047
|
|
|
19045
|
-
message.
|
|
19048
|
+
message.channel_category_id = reader.string();
|
|
19046
19049
|
continue;
|
|
19047
19050
|
case 2:
|
|
19048
19051
|
if (tag !== 16) {
|
|
@@ -19069,7 +19072,7 @@ export const SetNotificationRequest = {
|
|
|
19069
19072
|
|
|
19070
19073
|
fromJSON(object: any): SetNotificationRequest {
|
|
19071
19074
|
return {
|
|
19072
|
-
|
|
19075
|
+
channel_category_id: isSet(object.channel_category_id) ? globalThis.String(object.channel_category_id) : "",
|
|
19073
19076
|
notification_type: isSet(object.notification_type) ? globalThis.Number(object.notification_type) : 0,
|
|
19074
19077
|
time_mute: isSet(object.time_mute) ? fromJsonTimestamp(object.time_mute) : undefined,
|
|
19075
19078
|
};
|
|
@@ -19077,8 +19080,8 @@ export const SetNotificationRequest = {
|
|
|
19077
19080
|
|
|
19078
19081
|
toJSON(message: SetNotificationRequest): unknown {
|
|
19079
19082
|
const obj: any = {};
|
|
19080
|
-
if (message.
|
|
19081
|
-
obj.
|
|
19083
|
+
if (message.channel_category_id !== "") {
|
|
19084
|
+
obj.channel_category_id = message.channel_category_id;
|
|
19082
19085
|
}
|
|
19083
19086
|
if (message.notification_type !== 0) {
|
|
19084
19087
|
obj.notification_type = Math.round(message.notification_type);
|
|
@@ -19094,7 +19097,7 @@ export const SetNotificationRequest = {
|
|
|
19094
19097
|
},
|
|
19095
19098
|
fromPartial<I extends Exact<DeepPartial<SetNotificationRequest>, I>>(object: I): SetNotificationRequest {
|
|
19096
19099
|
const message = createBaseSetNotificationRequest();
|
|
19097
|
-
message.
|
|
19100
|
+
message.channel_category_id = object.channel_category_id ?? "";
|
|
19098
19101
|
message.notification_type = object.notification_type ?? 0;
|
|
19099
19102
|
message.time_mute = object.time_mute ?? undefined;
|
|
19100
19103
|
return message;
|
|
@@ -1673,8 +1673,11 @@ export interface NotificationSettingList {
|
|
|
1673
1673
|
}
|
|
1674
1674
|
/** set notification */
|
|
1675
1675
|
export interface SetNotificationRequest {
|
|
1676
|
-
|
|
1676
|
+
/** channelId or categoryId */
|
|
1677
|
+
channel_category_id: string;
|
|
1678
|
+
/** notification_type */
|
|
1677
1679
|
notification_type: number;
|
|
1680
|
+
/** time mute channel category */
|
|
1678
1681
|
time_mute: Date | undefined;
|
|
1679
1682
|
}
|
|
1680
1683
|
/** */
|
|
@@ -11415,20 +11418,20 @@ export declare const SetNotificationRequest: {
|
|
|
11415
11418
|
fromJSON(object: any): SetNotificationRequest;
|
|
11416
11419
|
toJSON(message: SetNotificationRequest): unknown;
|
|
11417
11420
|
create<I extends {
|
|
11418
|
-
|
|
11421
|
+
channel_category_id?: string | undefined;
|
|
11419
11422
|
notification_type?: number | undefined;
|
|
11420
11423
|
time_mute?: Date | undefined;
|
|
11421
11424
|
} & {
|
|
11422
|
-
|
|
11425
|
+
channel_category_id?: string | undefined;
|
|
11423
11426
|
notification_type?: number | undefined;
|
|
11424
11427
|
time_mute?: Date | undefined;
|
|
11425
11428
|
} & { [K in Exclude<keyof I, keyof SetNotificationRequest>]: never; }>(base?: I | undefined): SetNotificationRequest;
|
|
11426
11429
|
fromPartial<I_1 extends {
|
|
11427
|
-
|
|
11430
|
+
channel_category_id?: string | undefined;
|
|
11428
11431
|
notification_type?: number | undefined;
|
|
11429
11432
|
time_mute?: Date | undefined;
|
|
11430
11433
|
} & {
|
|
11431
|
-
|
|
11434
|
+
channel_category_id?: string | undefined;
|
|
11432
11435
|
notification_type?: number | undefined;
|
|
11433
11436
|
time_mute?: Date | undefined;
|
|
11434
11437
|
} & { [K_1 in Exclude<keyof I_1, keyof SetNotificationRequest>]: never; }>(object: I_1): SetNotificationRequest;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mezon-js-protobuf",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.79",
|
|
4
4
|
"description": "Websocket adapter adding protocol buffer support to the Mezon Javascript client.",
|
|
5
5
|
"main": "dist/mezon-js-protobuf.cjs.js",
|
|
6
6
|
"module": "dist/mezon-js-protobuf.esm.mjs",
|