mezon-js-protobuf 1.8.1 → 1.8.2
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 +0 -214
- package/dist/mezon-js-protobuf/api/api.d.ts +0 -77
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +240 -229
- package/dist/mezon-js-protobuf.cjs.js +27 -4
- package/dist/mezon-js-protobuf.esm.mjs +27 -4
- package/package.json +1 -1
- package/rtapi/realtime.ts +31 -1
|
@@ -13548,7 +13548,7 @@ var UserChannelAdded = {
|
|
|
13548
13548
|
}
|
|
13549
13549
|
};
|
|
13550
13550
|
function createBaseUserChannelRemoved() {
|
|
13551
|
-
return { channel_id: "", user_ids: [], channel_type: 0, clan_id: "" };
|
|
13551
|
+
return { channel_id: "", user_ids: [], channel_type: 0, clan_id: "", badge_counts: [] };
|
|
13552
13552
|
}
|
|
13553
13553
|
var UserChannelRemoved = {
|
|
13554
13554
|
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
@@ -13564,6 +13564,11 @@ var UserChannelRemoved = {
|
|
|
13564
13564
|
if (message.clan_id !== "") {
|
|
13565
13565
|
writer.uint32(34).string(message.clan_id);
|
|
13566
13566
|
}
|
|
13567
|
+
writer.uint32(50).fork();
|
|
13568
|
+
for (const v of message.badge_counts) {
|
|
13569
|
+
writer.int32(v);
|
|
13570
|
+
}
|
|
13571
|
+
writer.ldelim();
|
|
13567
13572
|
return writer;
|
|
13568
13573
|
},
|
|
13569
13574
|
decode(input, length) {
|
|
@@ -13597,6 +13602,19 @@ var UserChannelRemoved = {
|
|
|
13597
13602
|
}
|
|
13598
13603
|
message.clan_id = reader.string();
|
|
13599
13604
|
continue;
|
|
13605
|
+
case 6:
|
|
13606
|
+
if (tag === 48) {
|
|
13607
|
+
message.badge_counts.push(reader.int32());
|
|
13608
|
+
continue;
|
|
13609
|
+
}
|
|
13610
|
+
if (tag === 50) {
|
|
13611
|
+
const end2 = reader.uint32() + reader.pos;
|
|
13612
|
+
while (reader.pos < end2) {
|
|
13613
|
+
message.badge_counts.push(reader.int32());
|
|
13614
|
+
}
|
|
13615
|
+
continue;
|
|
13616
|
+
}
|
|
13617
|
+
break;
|
|
13600
13618
|
}
|
|
13601
13619
|
if ((tag & 7) === 4 || tag === 0) {
|
|
13602
13620
|
break;
|
|
@@ -13610,11 +13628,12 @@ var UserChannelRemoved = {
|
|
|
13610
13628
|
channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
13611
13629
|
user_ids: globalThis.Array.isArray(object == null ? void 0 : object.user_ids) ? object.user_ids.map((e) => globalThis.String(e)) : [],
|
|
13612
13630
|
channel_type: isSet4(object.channel_type) ? globalThis.Number(object.channel_type) : 0,
|
|
13613
|
-
clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : ""
|
|
13631
|
+
clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
13632
|
+
badge_counts: globalThis.Array.isArray(object == null ? void 0 : object.badge_counts) ? object.badge_counts.map((e) => globalThis.Number(e)) : []
|
|
13614
13633
|
};
|
|
13615
13634
|
},
|
|
13616
13635
|
toJSON(message) {
|
|
13617
|
-
var _a;
|
|
13636
|
+
var _a, _b;
|
|
13618
13637
|
const obj = {};
|
|
13619
13638
|
if (message.channel_id !== "") {
|
|
13620
13639
|
obj.channel_id = message.channel_id;
|
|
@@ -13628,18 +13647,22 @@ var UserChannelRemoved = {
|
|
|
13628
13647
|
if (message.clan_id !== "") {
|
|
13629
13648
|
obj.clan_id = message.clan_id;
|
|
13630
13649
|
}
|
|
13650
|
+
if ((_b = message.badge_counts) == null ? void 0 : _b.length) {
|
|
13651
|
+
obj.badge_counts = message.badge_counts.map((e) => Math.round(e));
|
|
13652
|
+
}
|
|
13631
13653
|
return obj;
|
|
13632
13654
|
},
|
|
13633
13655
|
create(base) {
|
|
13634
13656
|
return UserChannelRemoved.fromPartial(base != null ? base : {});
|
|
13635
13657
|
},
|
|
13636
13658
|
fromPartial(object) {
|
|
13637
|
-
var _a, _b, _c, _d;
|
|
13659
|
+
var _a, _b, _c, _d, _e;
|
|
13638
13660
|
const message = createBaseUserChannelRemoved();
|
|
13639
13661
|
message.channel_id = (_a = object.channel_id) != null ? _a : "";
|
|
13640
13662
|
message.user_ids = ((_b = object.user_ids) == null ? void 0 : _b.map((e) => e)) || [];
|
|
13641
13663
|
message.channel_type = (_c = object.channel_type) != null ? _c : 0;
|
|
13642
13664
|
message.clan_id = (_d = object.clan_id) != null ? _d : "";
|
|
13665
|
+
message.badge_counts = ((_e = object.badge_counts) == null ? void 0 : _e.map((e) => e)) || [];
|
|
13643
13666
|
return message;
|
|
13644
13667
|
}
|
|
13645
13668
|
};
|
|
@@ -13535,7 +13535,7 @@ var UserChannelAdded = {
|
|
|
13535
13535
|
}
|
|
13536
13536
|
};
|
|
13537
13537
|
function createBaseUserChannelRemoved() {
|
|
13538
|
-
return { channel_id: "", user_ids: [], channel_type: 0, clan_id: "" };
|
|
13538
|
+
return { channel_id: "", user_ids: [], channel_type: 0, clan_id: "", badge_counts: [] };
|
|
13539
13539
|
}
|
|
13540
13540
|
var UserChannelRemoved = {
|
|
13541
13541
|
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
@@ -13551,6 +13551,11 @@ var UserChannelRemoved = {
|
|
|
13551
13551
|
if (message.clan_id !== "") {
|
|
13552
13552
|
writer.uint32(34).string(message.clan_id);
|
|
13553
13553
|
}
|
|
13554
|
+
writer.uint32(50).fork();
|
|
13555
|
+
for (const v of message.badge_counts) {
|
|
13556
|
+
writer.int32(v);
|
|
13557
|
+
}
|
|
13558
|
+
writer.ldelim();
|
|
13554
13559
|
return writer;
|
|
13555
13560
|
},
|
|
13556
13561
|
decode(input, length) {
|
|
@@ -13584,6 +13589,19 @@ var UserChannelRemoved = {
|
|
|
13584
13589
|
}
|
|
13585
13590
|
message.clan_id = reader.string();
|
|
13586
13591
|
continue;
|
|
13592
|
+
case 6:
|
|
13593
|
+
if (tag === 48) {
|
|
13594
|
+
message.badge_counts.push(reader.int32());
|
|
13595
|
+
continue;
|
|
13596
|
+
}
|
|
13597
|
+
if (tag === 50) {
|
|
13598
|
+
const end2 = reader.uint32() + reader.pos;
|
|
13599
|
+
while (reader.pos < end2) {
|
|
13600
|
+
message.badge_counts.push(reader.int32());
|
|
13601
|
+
}
|
|
13602
|
+
continue;
|
|
13603
|
+
}
|
|
13604
|
+
break;
|
|
13587
13605
|
}
|
|
13588
13606
|
if ((tag & 7) === 4 || tag === 0) {
|
|
13589
13607
|
break;
|
|
@@ -13597,11 +13615,12 @@ var UserChannelRemoved = {
|
|
|
13597
13615
|
channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
13598
13616
|
user_ids: globalThis.Array.isArray(object == null ? void 0 : object.user_ids) ? object.user_ids.map((e) => globalThis.String(e)) : [],
|
|
13599
13617
|
channel_type: isSet4(object.channel_type) ? globalThis.Number(object.channel_type) : 0,
|
|
13600
|
-
clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : ""
|
|
13618
|
+
clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
13619
|
+
badge_counts: globalThis.Array.isArray(object == null ? void 0 : object.badge_counts) ? object.badge_counts.map((e) => globalThis.Number(e)) : []
|
|
13601
13620
|
};
|
|
13602
13621
|
},
|
|
13603
13622
|
toJSON(message) {
|
|
13604
|
-
var _a;
|
|
13623
|
+
var _a, _b;
|
|
13605
13624
|
const obj = {};
|
|
13606
13625
|
if (message.channel_id !== "") {
|
|
13607
13626
|
obj.channel_id = message.channel_id;
|
|
@@ -13615,18 +13634,22 @@ var UserChannelRemoved = {
|
|
|
13615
13634
|
if (message.clan_id !== "") {
|
|
13616
13635
|
obj.clan_id = message.clan_id;
|
|
13617
13636
|
}
|
|
13637
|
+
if ((_b = message.badge_counts) == null ? void 0 : _b.length) {
|
|
13638
|
+
obj.badge_counts = message.badge_counts.map((e) => Math.round(e));
|
|
13639
|
+
}
|
|
13618
13640
|
return obj;
|
|
13619
13641
|
},
|
|
13620
13642
|
create(base) {
|
|
13621
13643
|
return UserChannelRemoved.fromPartial(base != null ? base : {});
|
|
13622
13644
|
},
|
|
13623
13645
|
fromPartial(object) {
|
|
13624
|
-
var _a, _b, _c, _d;
|
|
13646
|
+
var _a, _b, _c, _d, _e;
|
|
13625
13647
|
const message = createBaseUserChannelRemoved();
|
|
13626
13648
|
message.channel_id = (_a = object.channel_id) != null ? _a : "";
|
|
13627
13649
|
message.user_ids = ((_b = object.user_ids) == null ? void 0 : _b.map((e) => e)) || [];
|
|
13628
13650
|
message.channel_type = (_c = object.channel_type) != null ? _c : 0;
|
|
13629
13651
|
message.clan_id = (_d = object.clan_id) != null ? _d : "";
|
|
13652
|
+
message.badge_counts = ((_e = object.badge_counts) == null ? void 0 : _e.map((e) => e)) || [];
|
|
13630
13653
|
return message;
|
|
13631
13654
|
}
|
|
13632
13655
|
};
|
package/package.json
CHANGED
package/rtapi/realtime.ts
CHANGED
|
@@ -1195,6 +1195,7 @@ export interface UserChannelRemoved {
|
|
|
1195
1195
|
channel_type: number;
|
|
1196
1196
|
/** the clan_id */
|
|
1197
1197
|
clan_id: string;
|
|
1198
|
+
badge_counts: number[];
|
|
1198
1199
|
}
|
|
1199
1200
|
|
|
1200
1201
|
/** */
|
|
@@ -9900,7 +9901,7 @@ export const UserChannelAdded = {
|
|
|
9900
9901
|
};
|
|
9901
9902
|
|
|
9902
9903
|
function createBaseUserChannelRemoved(): UserChannelRemoved {
|
|
9903
|
-
return { channel_id: "", user_ids: [], channel_type: 0, clan_id: "" };
|
|
9904
|
+
return { channel_id: "", user_ids: [], channel_type: 0, clan_id: "", badge_counts: [] };
|
|
9904
9905
|
}
|
|
9905
9906
|
|
|
9906
9907
|
export const UserChannelRemoved = {
|
|
@@ -9917,6 +9918,11 @@ export const UserChannelRemoved = {
|
|
|
9917
9918
|
if (message.clan_id !== "") {
|
|
9918
9919
|
writer.uint32(34).string(message.clan_id);
|
|
9919
9920
|
}
|
|
9921
|
+
writer.uint32(50).fork();
|
|
9922
|
+
for (const v of message.badge_counts) {
|
|
9923
|
+
writer.int32(v);
|
|
9924
|
+
}
|
|
9925
|
+
writer.ldelim();
|
|
9920
9926
|
return writer;
|
|
9921
9927
|
},
|
|
9922
9928
|
|
|
@@ -9955,6 +9961,23 @@ export const UserChannelRemoved = {
|
|
|
9955
9961
|
|
|
9956
9962
|
message.clan_id = reader.string();
|
|
9957
9963
|
continue;
|
|
9964
|
+
case 6:
|
|
9965
|
+
if (tag === 48) {
|
|
9966
|
+
message.badge_counts.push(reader.int32());
|
|
9967
|
+
|
|
9968
|
+
continue;
|
|
9969
|
+
}
|
|
9970
|
+
|
|
9971
|
+
if (tag === 50) {
|
|
9972
|
+
const end2 = reader.uint32() + reader.pos;
|
|
9973
|
+
while (reader.pos < end2) {
|
|
9974
|
+
message.badge_counts.push(reader.int32());
|
|
9975
|
+
}
|
|
9976
|
+
|
|
9977
|
+
continue;
|
|
9978
|
+
}
|
|
9979
|
+
|
|
9980
|
+
break;
|
|
9958
9981
|
}
|
|
9959
9982
|
if ((tag & 7) === 4 || tag === 0) {
|
|
9960
9983
|
break;
|
|
@@ -9970,6 +9993,9 @@ export const UserChannelRemoved = {
|
|
|
9970
9993
|
user_ids: globalThis.Array.isArray(object?.user_ids) ? object.user_ids.map((e: any) => globalThis.String(e)) : [],
|
|
9971
9994
|
channel_type: isSet(object.channel_type) ? globalThis.Number(object.channel_type) : 0,
|
|
9972
9995
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
9996
|
+
badge_counts: globalThis.Array.isArray(object?.badge_counts)
|
|
9997
|
+
? object.badge_counts.map((e: any) => globalThis.Number(e))
|
|
9998
|
+
: [],
|
|
9973
9999
|
};
|
|
9974
10000
|
},
|
|
9975
10001
|
|
|
@@ -9987,6 +10013,9 @@ export const UserChannelRemoved = {
|
|
|
9987
10013
|
if (message.clan_id !== "") {
|
|
9988
10014
|
obj.clan_id = message.clan_id;
|
|
9989
10015
|
}
|
|
10016
|
+
if (message.badge_counts?.length) {
|
|
10017
|
+
obj.badge_counts = message.badge_counts.map((e) => Math.round(e));
|
|
10018
|
+
}
|
|
9990
10019
|
return obj;
|
|
9991
10020
|
},
|
|
9992
10021
|
|
|
@@ -9999,6 +10028,7 @@ export const UserChannelRemoved = {
|
|
|
9999
10028
|
message.user_ids = object.user_ids?.map((e) => e) || [];
|
|
10000
10029
|
message.channel_type = object.channel_type ?? 0;
|
|
10001
10030
|
message.clan_id = object.clan_id ?? "";
|
|
10031
|
+
message.badge_counts = object.badge_counts?.map((e) => e) || [];
|
|
10002
10032
|
return message;
|
|
10003
10033
|
},
|
|
10004
10034
|
};
|