mezon-js-protobuf 1.8.30 → 1.8.32
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 +54 -0
- package/dist/mezon-js-protobuf/api/api.d.ts +48 -0
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +530 -333
- package/dist/mezon-js-protobuf.cjs.js +226 -11
- package/dist/mezon-js-protobuf.esm.mjs +226 -11
- package/package.json +1 -1
- package/rtapi/realtime.ts +211 -2
|
@@ -6365,7 +6365,10 @@ function createBaseClanDesc() {
|
|
|
6365
6365
|
onboarding_banner: "",
|
|
6366
6366
|
clan_order: 0,
|
|
6367
6367
|
is_community: false,
|
|
6368
|
-
community_banner: ""
|
|
6368
|
+
community_banner: "",
|
|
6369
|
+
description: "",
|
|
6370
|
+
about: "",
|
|
6371
|
+
short_url: ""
|
|
6369
6372
|
};
|
|
6370
6373
|
}
|
|
6371
6374
|
var ClanDesc = {
|
|
@@ -6409,6 +6412,15 @@ var ClanDesc = {
|
|
|
6409
6412
|
if (message.community_banner !== "") {
|
|
6410
6413
|
writer.uint32(106).string(message.community_banner);
|
|
6411
6414
|
}
|
|
6415
|
+
if (message.description !== "") {
|
|
6416
|
+
writer.uint32(114).string(message.description);
|
|
6417
|
+
}
|
|
6418
|
+
if (message.about !== "") {
|
|
6419
|
+
writer.uint32(122).string(message.about);
|
|
6420
|
+
}
|
|
6421
|
+
if (message.short_url !== "") {
|
|
6422
|
+
writer.uint32(130).string(message.short_url);
|
|
6423
|
+
}
|
|
6412
6424
|
return writer;
|
|
6413
6425
|
},
|
|
6414
6426
|
decode(input, length) {
|
|
@@ -6496,6 +6508,24 @@ var ClanDesc = {
|
|
|
6496
6508
|
}
|
|
6497
6509
|
message.community_banner = reader.string();
|
|
6498
6510
|
continue;
|
|
6511
|
+
case 14:
|
|
6512
|
+
if (tag !== 114) {
|
|
6513
|
+
break;
|
|
6514
|
+
}
|
|
6515
|
+
message.description = reader.string();
|
|
6516
|
+
continue;
|
|
6517
|
+
case 15:
|
|
6518
|
+
if (tag !== 122) {
|
|
6519
|
+
break;
|
|
6520
|
+
}
|
|
6521
|
+
message.about = reader.string();
|
|
6522
|
+
continue;
|
|
6523
|
+
case 16:
|
|
6524
|
+
if (tag !== 130) {
|
|
6525
|
+
break;
|
|
6526
|
+
}
|
|
6527
|
+
message.short_url = reader.string();
|
|
6528
|
+
continue;
|
|
6499
6529
|
}
|
|
6500
6530
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6501
6531
|
break;
|
|
@@ -6518,7 +6548,10 @@ var ClanDesc = {
|
|
|
6518
6548
|
onboarding_banner: isSet3(object.onboarding_banner) ? globalThis.String(object.onboarding_banner) : "",
|
|
6519
6549
|
clan_order: isSet3(object.clan_order) ? globalThis.Number(object.clan_order) : 0,
|
|
6520
6550
|
is_community: isSet3(object.is_community) ? globalThis.Boolean(object.is_community) : false,
|
|
6521
|
-
community_banner: isSet3(object.community_banner) ? globalThis.String(object.community_banner) : ""
|
|
6551
|
+
community_banner: isSet3(object.community_banner) ? globalThis.String(object.community_banner) : "",
|
|
6552
|
+
description: isSet3(object.description) ? globalThis.String(object.description) : "",
|
|
6553
|
+
about: isSet3(object.about) ? globalThis.String(object.about) : "",
|
|
6554
|
+
short_url: isSet3(object.short_url) ? globalThis.String(object.short_url) : ""
|
|
6522
6555
|
};
|
|
6523
6556
|
},
|
|
6524
6557
|
toJSON(message) {
|
|
@@ -6562,13 +6595,22 @@ var ClanDesc = {
|
|
|
6562
6595
|
if (message.community_banner !== "") {
|
|
6563
6596
|
obj.community_banner = message.community_banner;
|
|
6564
6597
|
}
|
|
6598
|
+
if (message.description !== "") {
|
|
6599
|
+
obj.description = message.description;
|
|
6600
|
+
}
|
|
6601
|
+
if (message.about !== "") {
|
|
6602
|
+
obj.about = message.about;
|
|
6603
|
+
}
|
|
6604
|
+
if (message.short_url !== "") {
|
|
6605
|
+
obj.short_url = message.short_url;
|
|
6606
|
+
}
|
|
6565
6607
|
return obj;
|
|
6566
6608
|
},
|
|
6567
6609
|
create(base) {
|
|
6568
6610
|
return ClanDesc.fromPartial(base != null ? base : {});
|
|
6569
6611
|
},
|
|
6570
6612
|
fromPartial(object) {
|
|
6571
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
6613
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
|
|
6572
6614
|
const message = createBaseClanDesc();
|
|
6573
6615
|
message.creator_id = (_a = object.creator_id) != null ? _a : "";
|
|
6574
6616
|
message.clan_name = (_b = object.clan_name) != null ? _b : "";
|
|
@@ -6583,6 +6625,9 @@ var ClanDesc = {
|
|
|
6583
6625
|
message.clan_order = (_k = object.clan_order) != null ? _k : 0;
|
|
6584
6626
|
message.is_community = (_l = object.is_community) != null ? _l : false;
|
|
6585
6627
|
message.community_banner = (_m = object.community_banner) != null ? _m : "";
|
|
6628
|
+
message.description = (_n = object.description) != null ? _n : "";
|
|
6629
|
+
message.about = (_o = object.about) != null ? _o : "";
|
|
6630
|
+
message.short_url = (_p = object.short_url) != null ? _p : "";
|
|
6586
6631
|
return message;
|
|
6587
6632
|
}
|
|
6588
6633
|
};
|
|
@@ -14264,7 +14309,8 @@ function createBaseEnvelope() {
|
|
|
14264
14309
|
list_data_socket: void 0,
|
|
14265
14310
|
quick_menu_event: void 0,
|
|
14266
14311
|
un_block_friend: void 0,
|
|
14267
|
-
meet_participant_event: void 0
|
|
14312
|
+
meet_participant_event: void 0,
|
|
14313
|
+
transfer_ownership_event: void 0
|
|
14268
14314
|
};
|
|
14269
14315
|
}
|
|
14270
14316
|
var Envelope = {
|
|
@@ -14527,6 +14573,9 @@ var Envelope = {
|
|
|
14527
14573
|
if (message.meet_participant_event !== void 0) {
|
|
14528
14574
|
MeetParticipantEvent.encode(message.meet_participant_event, writer.uint32(690).fork()).ldelim();
|
|
14529
14575
|
}
|
|
14576
|
+
if (message.transfer_ownership_event !== void 0) {
|
|
14577
|
+
TransferOwnershipEvent.encode(message.transfer_ownership_event, writer.uint32(698).fork()).ldelim();
|
|
14578
|
+
}
|
|
14530
14579
|
return writer;
|
|
14531
14580
|
},
|
|
14532
14581
|
decode(input, length) {
|
|
@@ -15052,6 +15101,12 @@ var Envelope = {
|
|
|
15052
15101
|
}
|
|
15053
15102
|
message.meet_participant_event = MeetParticipantEvent.decode(reader, reader.uint32());
|
|
15054
15103
|
continue;
|
|
15104
|
+
case 87:
|
|
15105
|
+
if (tag !== 698) {
|
|
15106
|
+
break;
|
|
15107
|
+
}
|
|
15108
|
+
message.transfer_ownership_event = TransferOwnershipEvent.decode(reader, reader.uint32());
|
|
15109
|
+
continue;
|
|
15055
15110
|
}
|
|
15056
15111
|
if ((tag & 7) === 4 || tag === 0) {
|
|
15057
15112
|
break;
|
|
@@ -15147,7 +15202,8 @@ var Envelope = {
|
|
|
15147
15202
|
list_data_socket: isSet4(object.list_data_socket) ? ListDataSocket.fromJSON(object.list_data_socket) : void 0,
|
|
15148
15203
|
quick_menu_event: isSet4(object.quick_menu_event) ? QuickMenuDataEvent.fromJSON(object.quick_menu_event) : void 0,
|
|
15149
15204
|
un_block_friend: isSet4(object.un_block_friend) ? UnblockFriend.fromJSON(object.un_block_friend) : void 0,
|
|
15150
|
-
meet_participant_event: isSet4(object.meet_participant_event) ? MeetParticipantEvent.fromJSON(object.meet_participant_event) : void 0
|
|
15205
|
+
meet_participant_event: isSet4(object.meet_participant_event) ? MeetParticipantEvent.fromJSON(object.meet_participant_event) : void 0,
|
|
15206
|
+
transfer_ownership_event: isSet4(object.transfer_ownership_event) ? TransferOwnershipEvent.fromJSON(object.transfer_ownership_event) : void 0
|
|
15151
15207
|
};
|
|
15152
15208
|
},
|
|
15153
15209
|
toJSON(message) {
|
|
@@ -15412,6 +15468,9 @@ var Envelope = {
|
|
|
15412
15468
|
if (message.meet_participant_event !== void 0) {
|
|
15413
15469
|
obj.meet_participant_event = MeetParticipantEvent.toJSON(message.meet_participant_event);
|
|
15414
15470
|
}
|
|
15471
|
+
if (message.transfer_ownership_event !== void 0) {
|
|
15472
|
+
obj.transfer_ownership_event = TransferOwnershipEvent.toJSON(message.transfer_ownership_event);
|
|
15473
|
+
}
|
|
15415
15474
|
return obj;
|
|
15416
15475
|
},
|
|
15417
15476
|
create(base) {
|
|
@@ -15506,6 +15565,7 @@ var Envelope = {
|
|
|
15506
15565
|
message.quick_menu_event = object.quick_menu_event !== void 0 && object.quick_menu_event !== null ? QuickMenuDataEvent.fromPartial(object.quick_menu_event) : void 0;
|
|
15507
15566
|
message.un_block_friend = object.un_block_friend !== void 0 && object.un_block_friend !== null ? UnblockFriend.fromPartial(object.un_block_friend) : void 0;
|
|
15508
15567
|
message.meet_participant_event = object.meet_participant_event !== void 0 && object.meet_participant_event !== null ? MeetParticipantEvent.fromPartial(object.meet_participant_event) : void 0;
|
|
15568
|
+
message.transfer_ownership_event = object.transfer_ownership_event !== void 0 && object.transfer_ownership_event !== null ? TransferOwnershipEvent.fromPartial(object.transfer_ownership_event) : void 0;
|
|
15509
15569
|
return message;
|
|
15510
15570
|
}
|
|
15511
15571
|
};
|
|
@@ -21924,7 +21984,11 @@ function createBaseClanUpdatedEvent() {
|
|
|
21924
21984
|
status: 0,
|
|
21925
21985
|
is_onboarding: false,
|
|
21926
21986
|
welcome_channel_id: "",
|
|
21927
|
-
onboarding_banner: ""
|
|
21987
|
+
onboarding_banner: "",
|
|
21988
|
+
community_banner: "",
|
|
21989
|
+
is_community: false,
|
|
21990
|
+
about: "",
|
|
21991
|
+
description: ""
|
|
21928
21992
|
};
|
|
21929
21993
|
}
|
|
21930
21994
|
var ClanUpdatedEvent = {
|
|
@@ -21953,6 +22017,18 @@ var ClanUpdatedEvent = {
|
|
|
21953
22017
|
if (message.onboarding_banner !== "") {
|
|
21954
22018
|
writer.uint32(66).string(message.onboarding_banner);
|
|
21955
22019
|
}
|
|
22020
|
+
if (message.community_banner !== "") {
|
|
22021
|
+
writer.uint32(74).string(message.community_banner);
|
|
22022
|
+
}
|
|
22023
|
+
if (message.is_community !== false) {
|
|
22024
|
+
writer.uint32(80).bool(message.is_community);
|
|
22025
|
+
}
|
|
22026
|
+
if (message.about !== "") {
|
|
22027
|
+
writer.uint32(90).string(message.about);
|
|
22028
|
+
}
|
|
22029
|
+
if (message.description !== "") {
|
|
22030
|
+
writer.uint32(98).string(message.description);
|
|
22031
|
+
}
|
|
21956
22032
|
return writer;
|
|
21957
22033
|
},
|
|
21958
22034
|
decode(input, length) {
|
|
@@ -22010,6 +22086,30 @@ var ClanUpdatedEvent = {
|
|
|
22010
22086
|
}
|
|
22011
22087
|
message.onboarding_banner = reader.string();
|
|
22012
22088
|
continue;
|
|
22089
|
+
case 9:
|
|
22090
|
+
if (tag !== 74) {
|
|
22091
|
+
break;
|
|
22092
|
+
}
|
|
22093
|
+
message.community_banner = reader.string();
|
|
22094
|
+
continue;
|
|
22095
|
+
case 10:
|
|
22096
|
+
if (tag !== 80) {
|
|
22097
|
+
break;
|
|
22098
|
+
}
|
|
22099
|
+
message.is_community = reader.bool();
|
|
22100
|
+
continue;
|
|
22101
|
+
case 11:
|
|
22102
|
+
if (tag !== 90) {
|
|
22103
|
+
break;
|
|
22104
|
+
}
|
|
22105
|
+
message.about = reader.string();
|
|
22106
|
+
continue;
|
|
22107
|
+
case 12:
|
|
22108
|
+
if (tag !== 98) {
|
|
22109
|
+
break;
|
|
22110
|
+
}
|
|
22111
|
+
message.description = reader.string();
|
|
22112
|
+
continue;
|
|
22013
22113
|
}
|
|
22014
22114
|
if ((tag & 7) === 4 || tag === 0) {
|
|
22015
22115
|
break;
|
|
@@ -22027,7 +22127,11 @@ var ClanUpdatedEvent = {
|
|
|
22027
22127
|
status: isSet4(object.status) ? globalThis.Number(object.status) : 0,
|
|
22028
22128
|
is_onboarding: isSet4(object.is_onboarding) ? globalThis.Boolean(object.is_onboarding) : false,
|
|
22029
22129
|
welcome_channel_id: isSet4(object.welcome_channel_id) ? globalThis.String(object.welcome_channel_id) : "",
|
|
22030
|
-
onboarding_banner: isSet4(object.onboarding_banner) ? globalThis.String(object.onboarding_banner) : ""
|
|
22130
|
+
onboarding_banner: isSet4(object.onboarding_banner) ? globalThis.String(object.onboarding_banner) : "",
|
|
22131
|
+
community_banner: isSet4(object.community_banner) ? globalThis.String(object.community_banner) : "",
|
|
22132
|
+
is_community: isSet4(object.is_community) ? globalThis.Boolean(object.is_community) : false,
|
|
22133
|
+
about: isSet4(object.about) ? globalThis.String(object.about) : "",
|
|
22134
|
+
description: isSet4(object.description) ? globalThis.String(object.description) : ""
|
|
22031
22135
|
};
|
|
22032
22136
|
},
|
|
22033
22137
|
toJSON(message) {
|
|
@@ -22056,13 +22160,25 @@ var ClanUpdatedEvent = {
|
|
|
22056
22160
|
if (message.onboarding_banner !== "") {
|
|
22057
22161
|
obj.onboarding_banner = message.onboarding_banner;
|
|
22058
22162
|
}
|
|
22163
|
+
if (message.community_banner !== "") {
|
|
22164
|
+
obj.community_banner = message.community_banner;
|
|
22165
|
+
}
|
|
22166
|
+
if (message.is_community !== false) {
|
|
22167
|
+
obj.is_community = message.is_community;
|
|
22168
|
+
}
|
|
22169
|
+
if (message.about !== "") {
|
|
22170
|
+
obj.about = message.about;
|
|
22171
|
+
}
|
|
22172
|
+
if (message.description !== "") {
|
|
22173
|
+
obj.description = message.description;
|
|
22174
|
+
}
|
|
22059
22175
|
return obj;
|
|
22060
22176
|
},
|
|
22061
22177
|
create(base) {
|
|
22062
22178
|
return ClanUpdatedEvent.fromPartial(base != null ? base : {});
|
|
22063
22179
|
},
|
|
22064
22180
|
fromPartial(object) {
|
|
22065
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
22181
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
22066
22182
|
const message = createBaseClanUpdatedEvent();
|
|
22067
22183
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
22068
22184
|
message.clan_name = (_b = object.clan_name) != null ? _b : "";
|
|
@@ -22072,6 +22188,10 @@ var ClanUpdatedEvent = {
|
|
|
22072
22188
|
message.is_onboarding = (_f = object.is_onboarding) != null ? _f : false;
|
|
22073
22189
|
message.welcome_channel_id = (_g = object.welcome_channel_id) != null ? _g : "";
|
|
22074
22190
|
message.onboarding_banner = (_h = object.onboarding_banner) != null ? _h : "";
|
|
22191
|
+
message.community_banner = (_i = object.community_banner) != null ? _i : "";
|
|
22192
|
+
message.is_community = (_j = object.is_community) != null ? _j : false;
|
|
22193
|
+
message.about = (_k = object.about) != null ? _k : "";
|
|
22194
|
+
message.description = (_l = object.description) != null ? _l : "";
|
|
22075
22195
|
return message;
|
|
22076
22196
|
}
|
|
22077
22197
|
};
|
|
@@ -24092,7 +24212,7 @@ var UnpinMessageEvent = {
|
|
|
24092
24212
|
}
|
|
24093
24213
|
};
|
|
24094
24214
|
function createBaseHandleParticipantMeetStateEvent() {
|
|
24095
|
-
return { clan_id: "", channel_id: "", display_name: "", state: 0 };
|
|
24215
|
+
return { clan_id: "", channel_id: "", display_name: "", state: 0, room_name: "" };
|
|
24096
24216
|
}
|
|
24097
24217
|
var HandleParticipantMeetStateEvent = {
|
|
24098
24218
|
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
@@ -24108,6 +24228,9 @@ var HandleParticipantMeetStateEvent = {
|
|
|
24108
24228
|
if (message.state !== 0) {
|
|
24109
24229
|
writer.uint32(32).int32(message.state);
|
|
24110
24230
|
}
|
|
24231
|
+
if (message.room_name !== "") {
|
|
24232
|
+
writer.uint32(42).string(message.room_name);
|
|
24233
|
+
}
|
|
24111
24234
|
return writer;
|
|
24112
24235
|
},
|
|
24113
24236
|
decode(input, length) {
|
|
@@ -24141,6 +24264,12 @@ var HandleParticipantMeetStateEvent = {
|
|
|
24141
24264
|
}
|
|
24142
24265
|
message.state = reader.int32();
|
|
24143
24266
|
continue;
|
|
24267
|
+
case 5:
|
|
24268
|
+
if (tag !== 42) {
|
|
24269
|
+
break;
|
|
24270
|
+
}
|
|
24271
|
+
message.room_name = reader.string();
|
|
24272
|
+
continue;
|
|
24144
24273
|
}
|
|
24145
24274
|
if ((tag & 7) === 4 || tag === 0) {
|
|
24146
24275
|
break;
|
|
@@ -24154,7 +24283,8 @@ var HandleParticipantMeetStateEvent = {
|
|
|
24154
24283
|
clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
24155
24284
|
channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
24156
24285
|
display_name: isSet4(object.display_name) ? globalThis.String(object.display_name) : "",
|
|
24157
|
-
state: isSet4(object.state) ? globalThis.Number(object.state) : 0
|
|
24286
|
+
state: isSet4(object.state) ? globalThis.Number(object.state) : 0,
|
|
24287
|
+
room_name: isSet4(object.room_name) ? globalThis.String(object.room_name) : ""
|
|
24158
24288
|
};
|
|
24159
24289
|
},
|
|
24160
24290
|
toJSON(message) {
|
|
@@ -24171,18 +24301,22 @@ var HandleParticipantMeetStateEvent = {
|
|
|
24171
24301
|
if (message.state !== 0) {
|
|
24172
24302
|
obj.state = Math.round(message.state);
|
|
24173
24303
|
}
|
|
24304
|
+
if (message.room_name !== "") {
|
|
24305
|
+
obj.room_name = message.room_name;
|
|
24306
|
+
}
|
|
24174
24307
|
return obj;
|
|
24175
24308
|
},
|
|
24176
24309
|
create(base) {
|
|
24177
24310
|
return HandleParticipantMeetStateEvent.fromPartial(base != null ? base : {});
|
|
24178
24311
|
},
|
|
24179
24312
|
fromPartial(object) {
|
|
24180
|
-
var _a, _b, _c, _d;
|
|
24313
|
+
var _a, _b, _c, _d, _e;
|
|
24181
24314
|
const message = createBaseHandleParticipantMeetStateEvent();
|
|
24182
24315
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
24183
24316
|
message.channel_id = (_b = object.channel_id) != null ? _b : "";
|
|
24184
24317
|
message.display_name = (_c = object.display_name) != null ? _c : "";
|
|
24185
24318
|
message.state = (_d = object.state) != null ? _d : 0;
|
|
24319
|
+
message.room_name = (_e = object.room_name) != null ? _e : "";
|
|
24186
24320
|
return message;
|
|
24187
24321
|
}
|
|
24188
24322
|
};
|
|
@@ -25351,6 +25485,87 @@ var MeetParticipantEvent = {
|
|
|
25351
25485
|
return message;
|
|
25352
25486
|
}
|
|
25353
25487
|
};
|
|
25488
|
+
function createBaseTransferOwnershipEvent() {
|
|
25489
|
+
return { clan_id: "", prev_owner: "", curr_owner: "" };
|
|
25490
|
+
}
|
|
25491
|
+
var TransferOwnershipEvent = {
|
|
25492
|
+
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
25493
|
+
if (message.clan_id !== "") {
|
|
25494
|
+
writer.uint32(10).string(message.clan_id);
|
|
25495
|
+
}
|
|
25496
|
+
if (message.prev_owner !== "") {
|
|
25497
|
+
writer.uint32(18).string(message.prev_owner);
|
|
25498
|
+
}
|
|
25499
|
+
if (message.curr_owner !== "") {
|
|
25500
|
+
writer.uint32(26).string(message.curr_owner);
|
|
25501
|
+
}
|
|
25502
|
+
return writer;
|
|
25503
|
+
},
|
|
25504
|
+
decode(input, length) {
|
|
25505
|
+
const reader = input instanceof import_minimal5.default.Reader ? input : import_minimal5.default.Reader.create(input);
|
|
25506
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
25507
|
+
const message = createBaseTransferOwnershipEvent();
|
|
25508
|
+
while (reader.pos < end) {
|
|
25509
|
+
const tag = reader.uint32();
|
|
25510
|
+
switch (tag >>> 3) {
|
|
25511
|
+
case 1:
|
|
25512
|
+
if (tag !== 10) {
|
|
25513
|
+
break;
|
|
25514
|
+
}
|
|
25515
|
+
message.clan_id = reader.string();
|
|
25516
|
+
continue;
|
|
25517
|
+
case 2:
|
|
25518
|
+
if (tag !== 18) {
|
|
25519
|
+
break;
|
|
25520
|
+
}
|
|
25521
|
+
message.prev_owner = reader.string();
|
|
25522
|
+
continue;
|
|
25523
|
+
case 3:
|
|
25524
|
+
if (tag !== 26) {
|
|
25525
|
+
break;
|
|
25526
|
+
}
|
|
25527
|
+
message.curr_owner = reader.string();
|
|
25528
|
+
continue;
|
|
25529
|
+
}
|
|
25530
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
25531
|
+
break;
|
|
25532
|
+
}
|
|
25533
|
+
reader.skipType(tag & 7);
|
|
25534
|
+
}
|
|
25535
|
+
return message;
|
|
25536
|
+
},
|
|
25537
|
+
fromJSON(object) {
|
|
25538
|
+
return {
|
|
25539
|
+
clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
25540
|
+
prev_owner: isSet4(object.prev_owner) ? globalThis.String(object.prev_owner) : "",
|
|
25541
|
+
curr_owner: isSet4(object.curr_owner) ? globalThis.String(object.curr_owner) : ""
|
|
25542
|
+
};
|
|
25543
|
+
},
|
|
25544
|
+
toJSON(message) {
|
|
25545
|
+
const obj = {};
|
|
25546
|
+
if (message.clan_id !== "") {
|
|
25547
|
+
obj.clan_id = message.clan_id;
|
|
25548
|
+
}
|
|
25549
|
+
if (message.prev_owner !== "") {
|
|
25550
|
+
obj.prev_owner = message.prev_owner;
|
|
25551
|
+
}
|
|
25552
|
+
if (message.curr_owner !== "") {
|
|
25553
|
+
obj.curr_owner = message.curr_owner;
|
|
25554
|
+
}
|
|
25555
|
+
return obj;
|
|
25556
|
+
},
|
|
25557
|
+
create(base) {
|
|
25558
|
+
return TransferOwnershipEvent.fromPartial(base != null ? base : {});
|
|
25559
|
+
},
|
|
25560
|
+
fromPartial(object) {
|
|
25561
|
+
var _a, _b, _c;
|
|
25562
|
+
const message = createBaseTransferOwnershipEvent();
|
|
25563
|
+
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
25564
|
+
message.prev_owner = (_b = object.prev_owner) != null ? _b : "";
|
|
25565
|
+
message.curr_owner = (_c = object.curr_owner) != null ? _c : "";
|
|
25566
|
+
return message;
|
|
25567
|
+
}
|
|
25568
|
+
};
|
|
25354
25569
|
function toTimestamp2(date) {
|
|
25355
25570
|
const seconds = Math.trunc(date.getTime() / 1e3);
|
|
25356
25571
|
const nanos = date.getTime() % 1e3 * 1e6;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mezon-js-protobuf",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.32",
|
|
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",
|