@dcl/protocol 1.0.0-22309435573.commit-a48721e → 1.0.0-22309437617.commit-6617cff

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.
@@ -2,6 +2,7 @@
2
2
  import Long from "long";
3
3
  import _m0 from "protobufjs/minimal";
4
4
  import { Empty } from "../../../google/protobuf/empty.gen";
5
+ import { Color3 } from "../../common/colors.gen";
5
6
  import {
6
7
  ConflictingError,
7
8
  ForbiddenError,
@@ -288,6 +289,7 @@ export interface FriendProfile {
288
289
  name: string;
289
290
  hasClaimedName: boolean;
290
291
  profilePictureUrl: string;
292
+ nameColor?: Color3 | undefined;
291
293
  }
292
294
 
293
295
  export interface BlockedUserProfile {
@@ -296,6 +298,7 @@ export interface BlockedUserProfile {
296
298
  hasClaimedName: boolean;
297
299
  profilePictureUrl: string;
298
300
  blockedAt?: number | undefined;
301
+ nameColor?: Color3 | undefined;
299
302
  }
300
303
 
301
304
  export interface Pagination {
@@ -927,7 +930,7 @@ export namespace User {
927
930
  }
928
931
 
929
932
  function createBaseFriendProfile(): FriendProfile {
930
- return { address: "", name: "", hasClaimedName: false, profilePictureUrl: "" };
933
+ return { address: "", name: "", hasClaimedName: false, profilePictureUrl: "", nameColor: undefined };
931
934
  }
932
935
 
933
936
  export namespace FriendProfile {
@@ -944,6 +947,9 @@ export namespace FriendProfile {
944
947
  if (message.profilePictureUrl !== "") {
945
948
  writer.uint32(34).string(message.profilePictureUrl);
946
949
  }
950
+ if (message.nameColor !== undefined) {
951
+ Color3.encode(message.nameColor, writer.uint32(42).fork()).ldelim();
952
+ }
947
953
  return writer;
948
954
  }
949
955
 
@@ -982,6 +988,13 @@ export namespace FriendProfile {
982
988
 
983
989
  message.profilePictureUrl = reader.string();
984
990
  continue;
991
+ case 5:
992
+ if (tag !== 42) {
993
+ break;
994
+ }
995
+
996
+ message.nameColor = Color3.decode(reader, reader.uint32());
997
+ continue;
985
998
  }
986
999
  if ((tag & 7) === 4 || tag === 0) {
987
1000
  break;
@@ -997,6 +1010,7 @@ export namespace FriendProfile {
997
1010
  name: isSet(object.name) ? String(object.name) : "",
998
1011
  hasClaimedName: isSet(object.hasClaimedName) ? Boolean(object.hasClaimedName) : false,
999
1012
  profilePictureUrl: isSet(object.profilePictureUrl) ? String(object.profilePictureUrl) : "",
1013
+ nameColor: isSet(object.nameColor) ? Color3.fromJSON(object.nameColor) : undefined,
1000
1014
  };
1001
1015
  }
1002
1016
 
@@ -1006,6 +1020,8 @@ export namespace FriendProfile {
1006
1020
  message.name !== undefined && (obj.name = message.name);
1007
1021
  message.hasClaimedName !== undefined && (obj.hasClaimedName = message.hasClaimedName);
1008
1022
  message.profilePictureUrl !== undefined && (obj.profilePictureUrl = message.profilePictureUrl);
1023
+ message.nameColor !== undefined &&
1024
+ (obj.nameColor = message.nameColor ? Color3.toJSON(message.nameColor) : undefined);
1009
1025
  return obj;
1010
1026
  }
1011
1027
 
@@ -1019,12 +1035,22 @@ export namespace FriendProfile {
1019
1035
  message.name = object.name ?? "";
1020
1036
  message.hasClaimedName = object.hasClaimedName ?? false;
1021
1037
  message.profilePictureUrl = object.profilePictureUrl ?? "";
1038
+ message.nameColor = (object.nameColor !== undefined && object.nameColor !== null)
1039
+ ? Color3.fromPartial(object.nameColor)
1040
+ : undefined;
1022
1041
  return message;
1023
1042
  }
1024
1043
  }
1025
1044
 
1026
1045
  function createBaseBlockedUserProfile(): BlockedUserProfile {
1027
- return { address: "", name: "", hasClaimedName: false, profilePictureUrl: "", blockedAt: undefined };
1046
+ return {
1047
+ address: "",
1048
+ name: "",
1049
+ hasClaimedName: false,
1050
+ profilePictureUrl: "",
1051
+ blockedAt: undefined,
1052
+ nameColor: undefined,
1053
+ };
1028
1054
  }
1029
1055
 
1030
1056
  export namespace BlockedUserProfile {
@@ -1044,6 +1070,9 @@ export namespace BlockedUserProfile {
1044
1070
  if (message.blockedAt !== undefined) {
1045
1071
  writer.uint32(40).int64(message.blockedAt);
1046
1072
  }
1073
+ if (message.nameColor !== undefined) {
1074
+ Color3.encode(message.nameColor, writer.uint32(50).fork()).ldelim();
1075
+ }
1047
1076
  return writer;
1048
1077
  }
1049
1078
 
@@ -1089,6 +1118,13 @@ export namespace BlockedUserProfile {
1089
1118
 
1090
1119
  message.blockedAt = longToNumber(reader.int64() as Long);
1091
1120
  continue;
1121
+ case 6:
1122
+ if (tag !== 50) {
1123
+ break;
1124
+ }
1125
+
1126
+ message.nameColor = Color3.decode(reader, reader.uint32());
1127
+ continue;
1092
1128
  }
1093
1129
  if ((tag & 7) === 4 || tag === 0) {
1094
1130
  break;
@@ -1105,6 +1141,7 @@ export namespace BlockedUserProfile {
1105
1141
  hasClaimedName: isSet(object.hasClaimedName) ? Boolean(object.hasClaimedName) : false,
1106
1142
  profilePictureUrl: isSet(object.profilePictureUrl) ? String(object.profilePictureUrl) : "",
1107
1143
  blockedAt: isSet(object.blockedAt) ? Number(object.blockedAt) : undefined,
1144
+ nameColor: isSet(object.nameColor) ? Color3.fromJSON(object.nameColor) : undefined,
1108
1145
  };
1109
1146
  }
1110
1147
 
@@ -1115,6 +1152,8 @@ export namespace BlockedUserProfile {
1115
1152
  message.hasClaimedName !== undefined && (obj.hasClaimedName = message.hasClaimedName);
1116
1153
  message.profilePictureUrl !== undefined && (obj.profilePictureUrl = message.profilePictureUrl);
1117
1154
  message.blockedAt !== undefined && (obj.blockedAt = Math.round(message.blockedAt));
1155
+ message.nameColor !== undefined &&
1156
+ (obj.nameColor = message.nameColor ? Color3.toJSON(message.nameColor) : undefined);
1118
1157
  return obj;
1119
1158
  }
1120
1159
 
@@ -1129,6 +1168,9 @@ export namespace BlockedUserProfile {
1129
1168
  message.hasClaimedName = object.hasClaimedName ?? false;
1130
1169
  message.profilePictureUrl = object.profilePictureUrl ?? "";
1131
1170
  message.blockedAt = object.blockedAt ?? undefined;
1171
+ message.nameColor = (object.nameColor !== undefined && object.nameColor !== null)
1172
+ ? Color3.fromPartial(object.nameColor)
1173
+ : undefined;
1132
1174
  return message;
1133
1175
  }
1134
1176
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/protocol",
3
- "version": "1.0.0-22309435573.commit-a48721e",
3
+ "version": "1.0.0-22309437617.commit-6617cff",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",
@@ -33,5 +33,5 @@
33
33
  "out-js",
34
34
  "public"
35
35
  ],
36
- "commit": "a48721efb9b676efd0c27f6e06db6d699f5c9f10"
36
+ "commit": "6617cff6c794f12ab5b640c9d39aeb6724363a25"
37
37
  }
@@ -2,6 +2,7 @@ syntax = "proto3";
2
2
  package decentraland.social_service.v2;
3
3
 
4
4
  import "google/protobuf/empty.proto";
5
+ import "decentraland/common/colors.proto";
5
6
  import "decentraland/social_service/errors.proto";
6
7
 
7
8
  // Types
@@ -12,6 +13,7 @@ message FriendProfile {
12
13
  string name = 2;
13
14
  bool has_claimed_name = 3;
14
15
  string profile_picture_url = 4;
16
+ optional decentraland.common.Color3 name_color = 5;
15
17
  }
16
18
 
17
19
  message BlockedUserProfile {
@@ -20,6 +22,7 @@ message BlockedUserProfile {
20
22
  bool has_claimed_name = 3;
21
23
  string profile_picture_url = 4;
22
24
  optional int64 blocked_at = 5;
25
+ optional decentraland.common.Color3 name_color = 6;
23
26
  }
24
27
 
25
28
  message Pagination {