mezon-js-protobuf 1.5.46 → 1.5.47
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 -10
- package/dist/mezon-js-protobuf/api/api.d.ts +23 -23
- package/package.json +1 -1
package/api/api.ts
CHANGED
|
@@ -1056,9 +1056,7 @@ export interface ClanUserList_ClanUser {
|
|
|
1056
1056
|
| User
|
|
1057
1057
|
| undefined;
|
|
1058
1058
|
/** Their relationship to the role. */
|
|
1059
|
-
role_id:
|
|
1060
|
-
| string
|
|
1061
|
-
| undefined;
|
|
1059
|
+
role_id: string[];
|
|
1062
1060
|
/** from the `nick_name` field in the `clan_desc_profile` table. */
|
|
1063
1061
|
clan_nick: string;
|
|
1064
1062
|
/** from the `avatar_url` field in the `clan_desc_profile` table. */
|
|
@@ -8291,7 +8289,7 @@ export const ClanUserList = {
|
|
|
8291
8289
|
};
|
|
8292
8290
|
|
|
8293
8291
|
function createBaseClanUserList_ClanUser(): ClanUserList_ClanUser {
|
|
8294
|
-
return { user: undefined, role_id:
|
|
8292
|
+
return { user: undefined, role_id: [], clan_nick: "", clan_avatar: "", clan_id: "" };
|
|
8295
8293
|
}
|
|
8296
8294
|
|
|
8297
8295
|
export const ClanUserList_ClanUser = {
|
|
@@ -8299,8 +8297,8 @@ export const ClanUserList_ClanUser = {
|
|
|
8299
8297
|
if (message.user !== undefined) {
|
|
8300
8298
|
User.encode(message.user, writer.uint32(10).fork()).ldelim();
|
|
8301
8299
|
}
|
|
8302
|
-
|
|
8303
|
-
|
|
8300
|
+
for (const v of message.role_id) {
|
|
8301
|
+
writer.uint32(18).string(v!);
|
|
8304
8302
|
}
|
|
8305
8303
|
if (message.clan_nick !== "") {
|
|
8306
8304
|
writer.uint32(26).string(message.clan_nick);
|
|
@@ -8325,7 +8323,7 @@ export const ClanUserList_ClanUser = {
|
|
|
8325
8323
|
message.user = User.decode(reader, reader.uint32());
|
|
8326
8324
|
break;
|
|
8327
8325
|
case 2:
|
|
8328
|
-
message.role_id
|
|
8326
|
+
message.role_id.push(reader.string());
|
|
8329
8327
|
break;
|
|
8330
8328
|
case 3:
|
|
8331
8329
|
message.clan_nick = reader.string();
|
|
@@ -8347,7 +8345,7 @@ export const ClanUserList_ClanUser = {
|
|
|
8347
8345
|
fromJSON(object: any): ClanUserList_ClanUser {
|
|
8348
8346
|
return {
|
|
8349
8347
|
user: isSet(object.user) ? User.fromJSON(object.user) : undefined,
|
|
8350
|
-
role_id:
|
|
8348
|
+
role_id: Array.isArray(object?.role_id) ? object.role_id.map((e: any) => String(e)) : [],
|
|
8351
8349
|
clan_nick: isSet(object.clan_nick) ? String(object.clan_nick) : "",
|
|
8352
8350
|
clan_avatar: isSet(object.clan_avatar) ? String(object.clan_avatar) : "",
|
|
8353
8351
|
clan_id: isSet(object.clan_id) ? String(object.clan_id) : "",
|
|
@@ -8357,7 +8355,11 @@ export const ClanUserList_ClanUser = {
|
|
|
8357
8355
|
toJSON(message: ClanUserList_ClanUser): unknown {
|
|
8358
8356
|
const obj: any = {};
|
|
8359
8357
|
message.user !== undefined && (obj.user = message.user ? User.toJSON(message.user) : undefined);
|
|
8360
|
-
|
|
8358
|
+
if (message.role_id) {
|
|
8359
|
+
obj.role_id = message.role_id.map((e) => e);
|
|
8360
|
+
} else {
|
|
8361
|
+
obj.role_id = [];
|
|
8362
|
+
}
|
|
8361
8363
|
message.clan_nick !== undefined && (obj.clan_nick = message.clan_nick);
|
|
8362
8364
|
message.clan_avatar !== undefined && (obj.clan_avatar = message.clan_avatar);
|
|
8363
8365
|
message.clan_id !== undefined && (obj.clan_id = message.clan_id);
|
|
@@ -8371,7 +8373,7 @@ export const ClanUserList_ClanUser = {
|
|
|
8371
8373
|
fromPartial<I extends Exact<DeepPartial<ClanUserList_ClanUser>, I>>(object: I): ClanUserList_ClanUser {
|
|
8372
8374
|
const message = createBaseClanUserList_ClanUser();
|
|
8373
8375
|
message.user = (object.user !== undefined && object.user !== null) ? User.fromPartial(object.user) : undefined;
|
|
8374
|
-
message.role_id = object.role_id
|
|
8376
|
+
message.role_id = object.role_id?.map((e) => e) || [];
|
|
8375
8377
|
message.clan_nick = object.clan_nick ?? "";
|
|
8376
8378
|
message.clan_avatar = object.clan_avatar ?? "";
|
|
8377
8379
|
message.clan_id = object.clan_id ?? "";
|
|
@@ -760,7 +760,7 @@ export interface ClanUserList_ClanUser {
|
|
|
760
760
|
/** User. */
|
|
761
761
|
user: User | undefined;
|
|
762
762
|
/** Their relationship to the role. */
|
|
763
|
-
role_id: string
|
|
763
|
+
role_id: string[];
|
|
764
764
|
/** from the `nick_name` field in the `clan_desc_profile` table. */
|
|
765
765
|
clan_nick: string;
|
|
766
766
|
/** from the `avatar_url` field in the `clan_desc_profile` table. */
|
|
@@ -6459,7 +6459,7 @@ export declare const ClanUserList: {
|
|
|
6459
6459
|
about_me?: string | undefined;
|
|
6460
6460
|
join_time?: Date | undefined;
|
|
6461
6461
|
} | undefined;
|
|
6462
|
-
role_id?: string | undefined;
|
|
6462
|
+
role_id?: string[] | undefined;
|
|
6463
6463
|
clan_nick?: string | undefined;
|
|
6464
6464
|
clan_avatar?: string | undefined;
|
|
6465
6465
|
clan_id?: string | undefined;
|
|
@@ -6489,7 +6489,7 @@ export declare const ClanUserList: {
|
|
|
6489
6489
|
about_me?: string | undefined;
|
|
6490
6490
|
join_time?: Date | undefined;
|
|
6491
6491
|
} | undefined;
|
|
6492
|
-
role_id?: string | undefined;
|
|
6492
|
+
role_id?: string[] | undefined;
|
|
6493
6493
|
clan_nick?: string | undefined;
|
|
6494
6494
|
clan_avatar?: string | undefined;
|
|
6495
6495
|
clan_id?: string | undefined;
|
|
@@ -6515,7 +6515,7 @@ export declare const ClanUserList: {
|
|
|
6515
6515
|
about_me?: string | undefined;
|
|
6516
6516
|
join_time?: Date | undefined;
|
|
6517
6517
|
} | undefined;
|
|
6518
|
-
role_id?: string | undefined;
|
|
6518
|
+
role_id?: string[] | undefined;
|
|
6519
6519
|
clan_nick?: string | undefined;
|
|
6520
6520
|
clan_avatar?: string | undefined;
|
|
6521
6521
|
clan_id?: string | undefined;
|
|
@@ -6561,11 +6561,11 @@ export declare const ClanUserList: {
|
|
|
6561
6561
|
about_me?: string | undefined;
|
|
6562
6562
|
join_time?: Date | undefined;
|
|
6563
6563
|
} & { [K in Exclude<keyof I["clan_users"][number]["user"], keyof User>]: never; }) | undefined;
|
|
6564
|
-
role_id?: string | undefined;
|
|
6564
|
+
role_id?: (string[] & string[] & { [K_1 in Exclude<keyof I["clan_users"][number]["role_id"], keyof string[]>]: never; }) | undefined;
|
|
6565
6565
|
clan_nick?: string | undefined;
|
|
6566
6566
|
clan_avatar?: string | undefined;
|
|
6567
6567
|
clan_id?: string | undefined;
|
|
6568
|
-
} & { [
|
|
6568
|
+
} & { [K_2 in Exclude<keyof I["clan_users"][number], keyof ClanUserList_ClanUser>]: never; })[] & { [K_3 in Exclude<keyof I["clan_users"], keyof {
|
|
6569
6569
|
user?: {
|
|
6570
6570
|
id?: string | undefined;
|
|
6571
6571
|
username?: string | undefined;
|
|
@@ -6587,14 +6587,14 @@ export declare const ClanUserList: {
|
|
|
6587
6587
|
about_me?: string | undefined;
|
|
6588
6588
|
join_time?: Date | undefined;
|
|
6589
6589
|
} | undefined;
|
|
6590
|
-
role_id?: string | undefined;
|
|
6590
|
+
role_id?: string[] | undefined;
|
|
6591
6591
|
clan_nick?: string | undefined;
|
|
6592
6592
|
clan_avatar?: string | undefined;
|
|
6593
6593
|
clan_id?: string | undefined;
|
|
6594
6594
|
}[]>]: never; }) | undefined;
|
|
6595
6595
|
cursor?: string | undefined;
|
|
6596
6596
|
clan_id?: string | undefined;
|
|
6597
|
-
} & { [
|
|
6597
|
+
} & { [K_4 in Exclude<keyof I, keyof ClanUserList>]: never; }>(base?: I | undefined): ClanUserList;
|
|
6598
6598
|
fromPartial<I_1 extends {
|
|
6599
6599
|
clan_users?: {
|
|
6600
6600
|
user?: {
|
|
@@ -6618,7 +6618,7 @@ export declare const ClanUserList: {
|
|
|
6618
6618
|
about_me?: string | undefined;
|
|
6619
6619
|
join_time?: Date | undefined;
|
|
6620
6620
|
} | undefined;
|
|
6621
|
-
role_id?: string | undefined;
|
|
6621
|
+
role_id?: string[] | undefined;
|
|
6622
6622
|
clan_nick?: string | undefined;
|
|
6623
6623
|
clan_avatar?: string | undefined;
|
|
6624
6624
|
clan_id?: string | undefined;
|
|
@@ -6648,7 +6648,7 @@ export declare const ClanUserList: {
|
|
|
6648
6648
|
about_me?: string | undefined;
|
|
6649
6649
|
join_time?: Date | undefined;
|
|
6650
6650
|
} | undefined;
|
|
6651
|
-
role_id?: string | undefined;
|
|
6651
|
+
role_id?: string[] | undefined;
|
|
6652
6652
|
clan_nick?: string | undefined;
|
|
6653
6653
|
clan_avatar?: string | undefined;
|
|
6654
6654
|
clan_id?: string | undefined;
|
|
@@ -6674,7 +6674,7 @@ export declare const ClanUserList: {
|
|
|
6674
6674
|
about_me?: string | undefined;
|
|
6675
6675
|
join_time?: Date | undefined;
|
|
6676
6676
|
} | undefined;
|
|
6677
|
-
role_id?: string | undefined;
|
|
6677
|
+
role_id?: string[] | undefined;
|
|
6678
6678
|
clan_nick?: string | undefined;
|
|
6679
6679
|
clan_avatar?: string | undefined;
|
|
6680
6680
|
clan_id?: string | undefined;
|
|
@@ -6719,12 +6719,12 @@ export declare const ClanUserList: {
|
|
|
6719
6719
|
apple_id?: string | undefined;
|
|
6720
6720
|
about_me?: string | undefined;
|
|
6721
6721
|
join_time?: Date | undefined;
|
|
6722
|
-
} & { [
|
|
6723
|
-
role_id?: string | undefined;
|
|
6722
|
+
} & { [K_5 in Exclude<keyof I_1["clan_users"][number]["user"], keyof User>]: never; }) | undefined;
|
|
6723
|
+
role_id?: (string[] & string[] & { [K_6 in Exclude<keyof I_1["clan_users"][number]["role_id"], keyof string[]>]: never; }) | undefined;
|
|
6724
6724
|
clan_nick?: string | undefined;
|
|
6725
6725
|
clan_avatar?: string | undefined;
|
|
6726
6726
|
clan_id?: string | undefined;
|
|
6727
|
-
} & { [
|
|
6727
|
+
} & { [K_7 in Exclude<keyof I_1["clan_users"][number], keyof ClanUserList_ClanUser>]: never; })[] & { [K_8 in Exclude<keyof I_1["clan_users"], keyof {
|
|
6728
6728
|
user?: {
|
|
6729
6729
|
id?: string | undefined;
|
|
6730
6730
|
username?: string | undefined;
|
|
@@ -6746,14 +6746,14 @@ export declare const ClanUserList: {
|
|
|
6746
6746
|
about_me?: string | undefined;
|
|
6747
6747
|
join_time?: Date | undefined;
|
|
6748
6748
|
} | undefined;
|
|
6749
|
-
role_id?: string | undefined;
|
|
6749
|
+
role_id?: string[] | undefined;
|
|
6750
6750
|
clan_nick?: string | undefined;
|
|
6751
6751
|
clan_avatar?: string | undefined;
|
|
6752
6752
|
clan_id?: string | undefined;
|
|
6753
6753
|
}[]>]: never; }) | undefined;
|
|
6754
6754
|
cursor?: string | undefined;
|
|
6755
6755
|
clan_id?: string | undefined;
|
|
6756
|
-
} & { [
|
|
6756
|
+
} & { [K_9 in Exclude<keyof I_1, keyof ClanUserList>]: never; }>(object: I_1): ClanUserList;
|
|
6757
6757
|
};
|
|
6758
6758
|
export declare const ClanUserList_ClanUser: {
|
|
6759
6759
|
encode(message: ClanUserList_ClanUser, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -6782,7 +6782,7 @@ export declare const ClanUserList_ClanUser: {
|
|
|
6782
6782
|
about_me?: string | undefined;
|
|
6783
6783
|
join_time?: Date | undefined;
|
|
6784
6784
|
} | undefined;
|
|
6785
|
-
role_id?: string | undefined;
|
|
6785
|
+
role_id?: string[] | undefined;
|
|
6786
6786
|
clan_nick?: string | undefined;
|
|
6787
6787
|
clan_avatar?: string | undefined;
|
|
6788
6788
|
clan_id?: string | undefined;
|
|
@@ -6828,11 +6828,11 @@ export declare const ClanUserList_ClanUser: {
|
|
|
6828
6828
|
about_me?: string | undefined;
|
|
6829
6829
|
join_time?: Date | undefined;
|
|
6830
6830
|
} & { [K in Exclude<keyof I["user"], keyof User>]: never; }) | undefined;
|
|
6831
|
-
role_id?: string | undefined;
|
|
6831
|
+
role_id?: (string[] & string[] & { [K_1 in Exclude<keyof I["role_id"], keyof string[]>]: never; }) | undefined;
|
|
6832
6832
|
clan_nick?: string | undefined;
|
|
6833
6833
|
clan_avatar?: string | undefined;
|
|
6834
6834
|
clan_id?: string | undefined;
|
|
6835
|
-
} & { [
|
|
6835
|
+
} & { [K_2 in Exclude<keyof I, keyof ClanUserList_ClanUser>]: never; }>(base?: I | undefined): ClanUserList_ClanUser;
|
|
6836
6836
|
fromPartial<I_1 extends {
|
|
6837
6837
|
user?: {
|
|
6838
6838
|
id?: string | undefined;
|
|
@@ -6855,7 +6855,7 @@ export declare const ClanUserList_ClanUser: {
|
|
|
6855
6855
|
about_me?: string | undefined;
|
|
6856
6856
|
join_time?: Date | undefined;
|
|
6857
6857
|
} | undefined;
|
|
6858
|
-
role_id?: string | undefined;
|
|
6858
|
+
role_id?: string[] | undefined;
|
|
6859
6859
|
clan_nick?: string | undefined;
|
|
6860
6860
|
clan_avatar?: string | undefined;
|
|
6861
6861
|
clan_id?: string | undefined;
|
|
@@ -6900,12 +6900,12 @@ export declare const ClanUserList_ClanUser: {
|
|
|
6900
6900
|
apple_id?: string | undefined;
|
|
6901
6901
|
about_me?: string | undefined;
|
|
6902
6902
|
join_time?: Date | undefined;
|
|
6903
|
-
} & { [
|
|
6904
|
-
role_id?: string | undefined;
|
|
6903
|
+
} & { [K_3 in Exclude<keyof I_1["user"], keyof User>]: never; }) | undefined;
|
|
6904
|
+
role_id?: (string[] & string[] & { [K_4 in Exclude<keyof I_1["role_id"], keyof string[]>]: never; }) | undefined;
|
|
6905
6905
|
clan_nick?: string | undefined;
|
|
6906
6906
|
clan_avatar?: string | undefined;
|
|
6907
6907
|
clan_id?: string | undefined;
|
|
6908
|
-
} & { [
|
|
6908
|
+
} & { [K_5 in Exclude<keyof I_1, keyof ClanUserList_ClanUser>]: never; }>(object: I_1): ClanUserList_ClanUser;
|
|
6909
6909
|
};
|
|
6910
6910
|
export declare const ImportFacebookFriendsRequest: {
|
|
6911
6911
|
encode(message: ImportFacebookFriendsRequest, writer?: _m0.Writer): _m0.Writer;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mezon-js-protobuf",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.47",
|
|
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",
|