mezon-js-protobuf 1.7.9 → 1.7.11

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.
@@ -12852,7 +12852,7 @@ var UserChannelAdded = {
12852
12852
  }
12853
12853
  };
12854
12854
  function createBaseUserChannelRemoved() {
12855
- return { channel_id: "", user_ids: [], channel_type: 0 };
12855
+ return { channel_id: "", user_ids: [], channel_type: 0, clan_id: "" };
12856
12856
  }
12857
12857
  var UserChannelRemoved = {
12858
12858
  encode(message, writer = import_minimal5.default.Writer.create()) {
@@ -12865,6 +12865,9 @@ var UserChannelRemoved = {
12865
12865
  if (message.channel_type !== 0) {
12866
12866
  writer.uint32(24).int32(message.channel_type);
12867
12867
  }
12868
+ if (message.clan_id !== "") {
12869
+ writer.uint32(34).string(message.clan_id);
12870
+ }
12868
12871
  return writer;
12869
12872
  },
12870
12873
  decode(input, length) {
@@ -12892,6 +12895,12 @@ var UserChannelRemoved = {
12892
12895
  }
12893
12896
  message.channel_type = reader.int32();
12894
12897
  continue;
12898
+ case 4:
12899
+ if (tag !== 34) {
12900
+ break;
12901
+ }
12902
+ message.clan_id = reader.string();
12903
+ continue;
12895
12904
  }
12896
12905
  if ((tag & 7) === 4 || tag === 0) {
12897
12906
  break;
@@ -12904,7 +12913,8 @@ var UserChannelRemoved = {
12904
12913
  return {
12905
12914
  channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : "",
12906
12915
  user_ids: globalThis.Array.isArray(object == null ? void 0 : object.user_ids) ? object.user_ids.map((e) => globalThis.String(e)) : [],
12907
- channel_type: isSet4(object.channel_type) ? globalThis.Number(object.channel_type) : 0
12916
+ channel_type: isSet4(object.channel_type) ? globalThis.Number(object.channel_type) : 0,
12917
+ clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : ""
12908
12918
  };
12909
12919
  },
12910
12920
  toJSON(message) {
@@ -12919,17 +12929,21 @@ var UserChannelRemoved = {
12919
12929
  if (message.channel_type !== 0) {
12920
12930
  obj.channel_type = Math.round(message.channel_type);
12921
12931
  }
12932
+ if (message.clan_id !== "") {
12933
+ obj.clan_id = message.clan_id;
12934
+ }
12922
12935
  return obj;
12923
12936
  },
12924
12937
  create(base) {
12925
12938
  return UserChannelRemoved.fromPartial(base != null ? base : {});
12926
12939
  },
12927
12940
  fromPartial(object) {
12928
- var _a, _b, _c;
12941
+ var _a, _b, _c, _d;
12929
12942
  const message = createBaseUserChannelRemoved();
12930
12943
  message.channel_id = (_a = object.channel_id) != null ? _a : "";
12931
12944
  message.user_ids = ((_b = object.user_ids) == null ? void 0 : _b.map((e) => e)) || [];
12932
12945
  message.channel_type = (_c = object.channel_type) != null ? _c : 0;
12946
+ message.clan_id = (_d = object.clan_id) != null ? _d : "";
12933
12947
  return message;
12934
12948
  }
12935
12949
  };
@@ -13002,7 +13016,7 @@ var UserClanRemoved = {
13002
13016
  }
13003
13017
  };
13004
13018
  function createBaseClanUpdatedEvent() {
13005
- return { clan_id: "", clan_name: "", clan_logo: "" };
13019
+ return { clan_id: "", clan_name: "", logo: "", banner: "", status: 0, is_onboarding: false, welcome_channel_id: "" };
13006
13020
  }
13007
13021
  var ClanUpdatedEvent = {
13008
13022
  encode(message, writer = import_minimal5.default.Writer.create()) {
@@ -13012,8 +13026,20 @@ var ClanUpdatedEvent = {
13012
13026
  if (message.clan_name !== "") {
13013
13027
  writer.uint32(18).string(message.clan_name);
13014
13028
  }
13015
- if (message.clan_logo !== "") {
13016
- writer.uint32(26).string(message.clan_logo);
13029
+ if (message.logo !== "") {
13030
+ writer.uint32(26).string(message.logo);
13031
+ }
13032
+ if (message.banner !== "") {
13033
+ writer.uint32(34).string(message.banner);
13034
+ }
13035
+ if (message.status !== 0) {
13036
+ writer.uint32(40).int32(message.status);
13037
+ }
13038
+ if (message.is_onboarding !== false) {
13039
+ writer.uint32(48).bool(message.is_onboarding);
13040
+ }
13041
+ if (message.welcome_channel_id !== "") {
13042
+ writer.uint32(58).string(message.welcome_channel_id);
13017
13043
  }
13018
13044
  return writer;
13019
13045
  },
@@ -13040,7 +13066,31 @@ var ClanUpdatedEvent = {
13040
13066
  if (tag !== 26) {
13041
13067
  break;
13042
13068
  }
13043
- message.clan_logo = reader.string();
13069
+ message.logo = reader.string();
13070
+ continue;
13071
+ case 4:
13072
+ if (tag !== 34) {
13073
+ break;
13074
+ }
13075
+ message.banner = reader.string();
13076
+ continue;
13077
+ case 5:
13078
+ if (tag !== 40) {
13079
+ break;
13080
+ }
13081
+ message.status = reader.int32();
13082
+ continue;
13083
+ case 6:
13084
+ if (tag !== 48) {
13085
+ break;
13086
+ }
13087
+ message.is_onboarding = reader.bool();
13088
+ continue;
13089
+ case 7:
13090
+ if (tag !== 58) {
13091
+ break;
13092
+ }
13093
+ message.welcome_channel_id = reader.string();
13044
13094
  continue;
13045
13095
  }
13046
13096
  if ((tag & 7) === 4 || tag === 0) {
@@ -13054,7 +13104,11 @@ var ClanUpdatedEvent = {
13054
13104
  return {
13055
13105
  clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : "",
13056
13106
  clan_name: isSet4(object.clan_name) ? globalThis.String(object.clan_name) : "",
13057
- clan_logo: isSet4(object.clan_logo) ? globalThis.String(object.clan_logo) : ""
13107
+ logo: isSet4(object.logo) ? globalThis.String(object.logo) : "",
13108
+ banner: isSet4(object.banner) ? globalThis.String(object.banner) : "",
13109
+ status: isSet4(object.status) ? globalThis.Number(object.status) : 0,
13110
+ is_onboarding: isSet4(object.is_onboarding) ? globalThis.Boolean(object.is_onboarding) : false,
13111
+ welcome_channel_id: isSet4(object.welcome_channel_id) ? globalThis.String(object.welcome_channel_id) : ""
13058
13112
  };
13059
13113
  },
13060
13114
  toJSON(message) {
@@ -13065,8 +13119,20 @@ var ClanUpdatedEvent = {
13065
13119
  if (message.clan_name !== "") {
13066
13120
  obj.clan_name = message.clan_name;
13067
13121
  }
13068
- if (message.clan_logo !== "") {
13069
- obj.clan_logo = message.clan_logo;
13122
+ if (message.logo !== "") {
13123
+ obj.logo = message.logo;
13124
+ }
13125
+ if (message.banner !== "") {
13126
+ obj.banner = message.banner;
13127
+ }
13128
+ if (message.status !== 0) {
13129
+ obj.status = Math.round(message.status);
13130
+ }
13131
+ if (message.is_onboarding !== false) {
13132
+ obj.is_onboarding = message.is_onboarding;
13133
+ }
13134
+ if (message.welcome_channel_id !== "") {
13135
+ obj.welcome_channel_id = message.welcome_channel_id;
13070
13136
  }
13071
13137
  return obj;
13072
13138
  },
@@ -13074,11 +13140,15 @@ var ClanUpdatedEvent = {
13074
13140
  return ClanUpdatedEvent.fromPartial(base != null ? base : {});
13075
13141
  },
13076
13142
  fromPartial(object) {
13077
- var _a, _b, _c;
13143
+ var _a, _b, _c, _d, _e, _f, _g;
13078
13144
  const message = createBaseClanUpdatedEvent();
13079
13145
  message.clan_id = (_a = object.clan_id) != null ? _a : "";
13080
13146
  message.clan_name = (_b = object.clan_name) != null ? _b : "";
13081
- message.clan_logo = (_c = object.clan_logo) != null ? _c : "";
13147
+ message.logo = (_c = object.logo) != null ? _c : "";
13148
+ message.banner = (_d = object.banner) != null ? _d : "";
13149
+ message.status = (_e = object.status) != null ? _e : 0;
13150
+ message.is_onboarding = (_f = object.is_onboarding) != null ? _f : false;
13151
+ message.welcome_channel_id = (_g = object.welcome_channel_id) != null ? _g : "";
13082
13152
  return message;
13083
13153
  }
13084
13154
  };