mezon-js-protobuf 1.7.1 → 1.7.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 +246 -0
- package/dist/mezon-js-protobuf/api/api.d.ts +1470 -41
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +1710 -282
- package/dist/mezon-js-protobuf.cjs.js +17 -2
- package/dist/mezon-js-protobuf.esm.mjs +17 -2
- package/package.json +1 -1
|
@@ -3716,7 +3716,8 @@ function createBaseNotification() {
|
|
|
3716
3716
|
clan_id: "",
|
|
3717
3717
|
channel_id: "",
|
|
3718
3718
|
channel_type: 0,
|
|
3719
|
-
avatar_url: ""
|
|
3719
|
+
avatar_url: "",
|
|
3720
|
+
channel: void 0
|
|
3720
3721
|
};
|
|
3721
3722
|
}
|
|
3722
3723
|
var Notification = {
|
|
@@ -3754,6 +3755,9 @@ var Notification = {
|
|
|
3754
3755
|
if (message.avatar_url !== "") {
|
|
3755
3756
|
writer.uint32(90).string(message.avatar_url);
|
|
3756
3757
|
}
|
|
3758
|
+
if (message.channel !== void 0) {
|
|
3759
|
+
ChannelDescription.encode(message.channel, writer.uint32(98).fork()).ldelim();
|
|
3760
|
+
}
|
|
3757
3761
|
return writer;
|
|
3758
3762
|
},
|
|
3759
3763
|
decode(input, length) {
|
|
@@ -3829,6 +3833,12 @@ var Notification = {
|
|
|
3829
3833
|
}
|
|
3830
3834
|
message.avatar_url = reader.string();
|
|
3831
3835
|
continue;
|
|
3836
|
+
case 12:
|
|
3837
|
+
if (tag !== 98) {
|
|
3838
|
+
break;
|
|
3839
|
+
}
|
|
3840
|
+
message.channel = ChannelDescription.decode(reader, reader.uint32());
|
|
3841
|
+
continue;
|
|
3832
3842
|
}
|
|
3833
3843
|
if ((tag & 7) === 4 || tag === 0) {
|
|
3834
3844
|
break;
|
|
@@ -3849,7 +3859,8 @@ var Notification = {
|
|
|
3849
3859
|
clan_id: isSet3(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
3850
3860
|
channel_id: isSet3(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
3851
3861
|
channel_type: isSet3(object.channel_type) ? globalThis.Number(object.channel_type) : 0,
|
|
3852
|
-
avatar_url: isSet3(object.avatar_url) ? globalThis.String(object.avatar_url) : ""
|
|
3862
|
+
avatar_url: isSet3(object.avatar_url) ? globalThis.String(object.avatar_url) : "",
|
|
3863
|
+
channel: isSet3(object.channel) ? ChannelDescription.fromJSON(object.channel) : void 0
|
|
3853
3864
|
};
|
|
3854
3865
|
},
|
|
3855
3866
|
toJSON(message) {
|
|
@@ -3887,6 +3898,9 @@ var Notification = {
|
|
|
3887
3898
|
if (message.avatar_url !== "") {
|
|
3888
3899
|
obj.avatar_url = message.avatar_url;
|
|
3889
3900
|
}
|
|
3901
|
+
if (message.channel !== void 0) {
|
|
3902
|
+
obj.channel = ChannelDescription.toJSON(message.channel);
|
|
3903
|
+
}
|
|
3890
3904
|
return obj;
|
|
3891
3905
|
},
|
|
3892
3906
|
create(base) {
|
|
@@ -3906,6 +3920,7 @@ var Notification = {
|
|
|
3906
3920
|
message.channel_id = (_i = object.channel_id) != null ? _i : "";
|
|
3907
3921
|
message.channel_type = (_j = object.channel_type) != null ? _j : 0;
|
|
3908
3922
|
message.avatar_url = (_k = object.avatar_url) != null ? _k : "";
|
|
3923
|
+
message.channel = object.channel !== void 0 && object.channel !== null ? ChannelDescription.fromPartial(object.channel) : void 0;
|
|
3909
3924
|
return message;
|
|
3910
3925
|
}
|
|
3911
3926
|
};
|
|
@@ -3703,7 +3703,8 @@ function createBaseNotification() {
|
|
|
3703
3703
|
clan_id: "",
|
|
3704
3704
|
channel_id: "",
|
|
3705
3705
|
channel_type: 0,
|
|
3706
|
-
avatar_url: ""
|
|
3706
|
+
avatar_url: "",
|
|
3707
|
+
channel: void 0
|
|
3707
3708
|
};
|
|
3708
3709
|
}
|
|
3709
3710
|
var Notification = {
|
|
@@ -3741,6 +3742,9 @@ var Notification = {
|
|
|
3741
3742
|
if (message.avatar_url !== "") {
|
|
3742
3743
|
writer.uint32(90).string(message.avatar_url);
|
|
3743
3744
|
}
|
|
3745
|
+
if (message.channel !== void 0) {
|
|
3746
|
+
ChannelDescription.encode(message.channel, writer.uint32(98).fork()).ldelim();
|
|
3747
|
+
}
|
|
3744
3748
|
return writer;
|
|
3745
3749
|
},
|
|
3746
3750
|
decode(input, length) {
|
|
@@ -3816,6 +3820,12 @@ var Notification = {
|
|
|
3816
3820
|
}
|
|
3817
3821
|
message.avatar_url = reader.string();
|
|
3818
3822
|
continue;
|
|
3823
|
+
case 12:
|
|
3824
|
+
if (tag !== 98) {
|
|
3825
|
+
break;
|
|
3826
|
+
}
|
|
3827
|
+
message.channel = ChannelDescription.decode(reader, reader.uint32());
|
|
3828
|
+
continue;
|
|
3819
3829
|
}
|
|
3820
3830
|
if ((tag & 7) === 4 || tag === 0) {
|
|
3821
3831
|
break;
|
|
@@ -3836,7 +3846,8 @@ var Notification = {
|
|
|
3836
3846
|
clan_id: isSet3(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
3837
3847
|
channel_id: isSet3(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
3838
3848
|
channel_type: isSet3(object.channel_type) ? globalThis.Number(object.channel_type) : 0,
|
|
3839
|
-
avatar_url: isSet3(object.avatar_url) ? globalThis.String(object.avatar_url) : ""
|
|
3849
|
+
avatar_url: isSet3(object.avatar_url) ? globalThis.String(object.avatar_url) : "",
|
|
3850
|
+
channel: isSet3(object.channel) ? ChannelDescription.fromJSON(object.channel) : void 0
|
|
3840
3851
|
};
|
|
3841
3852
|
},
|
|
3842
3853
|
toJSON(message) {
|
|
@@ -3874,6 +3885,9 @@ var Notification = {
|
|
|
3874
3885
|
if (message.avatar_url !== "") {
|
|
3875
3886
|
obj.avatar_url = message.avatar_url;
|
|
3876
3887
|
}
|
|
3888
|
+
if (message.channel !== void 0) {
|
|
3889
|
+
obj.channel = ChannelDescription.toJSON(message.channel);
|
|
3890
|
+
}
|
|
3877
3891
|
return obj;
|
|
3878
3892
|
},
|
|
3879
3893
|
create(base) {
|
|
@@ -3893,6 +3907,7 @@ var Notification = {
|
|
|
3893
3907
|
message.channel_id = (_i = object.channel_id) != null ? _i : "";
|
|
3894
3908
|
message.channel_type = (_j = object.channel_type) != null ? _j : 0;
|
|
3895
3909
|
message.avatar_url = (_k = object.avatar_url) != null ? _k : "";
|
|
3910
|
+
message.channel = object.channel !== void 0 && object.channel !== null ? ChannelDescription.fromPartial(object.channel) : void 0;
|
|
3896
3911
|
return message;
|
|
3897
3912
|
}
|
|
3898
3913
|
};
|
package/package.json
CHANGED