mezon-js-protobuf 1.8.13 → 1.8.14

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 CHANGED
@@ -1237,6 +1237,8 @@ export interface User {
1237
1237
  | undefined;
1238
1238
  /** Mezone id */
1239
1239
  mezon_id: string;
1240
+ /** list clan nick name */
1241
+ list_nick_names: string[];
1240
1242
  }
1241
1243
 
1242
1244
  /** A list of groups belonging to a user, along with the user's role in each group. */
@@ -11291,6 +11293,7 @@ function createBaseUser(): User {
11291
11293
  is_mobile: false,
11292
11294
  dob: undefined,
11293
11295
  mezon_id: "",
11296
+ list_nick_names: [],
11294
11297
  };
11295
11298
  }
11296
11299
 
@@ -11362,6 +11365,9 @@ export const User = {
11362
11365
  if (message.mezon_id !== "") {
11363
11366
  writer.uint32(178).string(message.mezon_id);
11364
11367
  }
11368
+ for (const v of message.list_nick_names) {
11369
+ writer.uint32(186).string(v!);
11370
+ }
11365
11371
  return writer;
11366
11372
  },
11367
11373
 
@@ -11526,6 +11532,13 @@ export const User = {
11526
11532
 
11527
11533
  message.mezon_id = reader.string();
11528
11534
  continue;
11535
+ case 23:
11536
+ if (tag !== 186) {
11537
+ break;
11538
+ }
11539
+
11540
+ message.list_nick_names.push(reader.string());
11541
+ continue;
11529
11542
  }
11530
11543
  if ((tag & 7) === 4 || tag === 0) {
11531
11544
  break;
@@ -11559,6 +11572,9 @@ export const User = {
11559
11572
  is_mobile: isSet(object.is_mobile) ? globalThis.Boolean(object.is_mobile) : false,
11560
11573
  dob: isSet(object.dob) ? fromJsonTimestamp(object.dob) : undefined,
11561
11574
  mezon_id: isSet(object.mezon_id) ? globalThis.String(object.mezon_id) : "",
11575
+ list_nick_names: globalThis.Array.isArray(object?.list_nick_names)
11576
+ ? object.list_nick_names.map((e: any) => globalThis.String(e))
11577
+ : [],
11562
11578
  };
11563
11579
  },
11564
11580
 
@@ -11630,6 +11646,9 @@ export const User = {
11630
11646
  if (message.mezon_id !== "") {
11631
11647
  obj.mezon_id = message.mezon_id;
11632
11648
  }
11649
+ if (message.list_nick_names?.length) {
11650
+ obj.list_nick_names = message.list_nick_names;
11651
+ }
11633
11652
  return obj;
11634
11653
  },
11635
11654
 
@@ -11660,6 +11679,7 @@ export const User = {
11660
11679
  message.is_mobile = object.is_mobile ?? false;
11661
11680
  message.dob = object.dob ?? undefined;
11662
11681
  message.mezon_id = object.mezon_id ?? "";
11682
+ message.list_nick_names = object.list_nick_names?.map((e) => e) || [];
11663
11683
  return message;
11664
11684
  },
11665
11685
  };