protobuf-platform 1.0.47 → 1.0.48

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.0.47",
3
+ "version": "1.0.48",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -32,6 +32,7 @@ message LoggedInResponse {
32
32
  string currency = 3;
33
33
  string country = 4;
34
34
  string role = 5;
35
+ string permissions = 6;
35
36
  }
36
37
  message LoginRequest {
37
38
  string email = 1;
package/user/user_pb.js CHANGED
@@ -927,7 +927,8 @@ proto.user.LoggedInResponse.toObject = function(includeInstance, msg) {
927
927
  publicId: jspb.Message.getFieldWithDefault(msg, 2, ""),
928
928
  currency: jspb.Message.getFieldWithDefault(msg, 3, ""),
929
929
  country: jspb.Message.getFieldWithDefault(msg, 4, ""),
930
- role: jspb.Message.getFieldWithDefault(msg, 5, "")
930
+ role: jspb.Message.getFieldWithDefault(msg, 5, ""),
931
+ permissions: jspb.Message.getFieldWithDefault(msg, 6, "")
931
932
  };
932
933
 
933
934
  if (includeInstance) {
@@ -984,6 +985,10 @@ proto.user.LoggedInResponse.deserializeBinaryFromReader = function(msg, reader)
984
985
  var value = /** @type {string} */ (reader.readString());
985
986
  msg.setRole(value);
986
987
  break;
988
+ case 6:
989
+ var value = /** @type {string} */ (reader.readString());
990
+ msg.setPermissions(value);
991
+ break;
987
992
  default:
988
993
  reader.skipField();
989
994
  break;
@@ -1048,6 +1053,13 @@ proto.user.LoggedInResponse.serializeBinaryToWriter = function(message, writer)
1048
1053
  f
1049
1054
  );
1050
1055
  }
1056
+ f = message.getPermissions();
1057
+ if (f.length > 0) {
1058
+ writer.writeString(
1059
+ 6,
1060
+ f
1061
+ );
1062
+ }
1051
1063
  };
1052
1064
 
1053
1065
 
@@ -1141,6 +1153,24 @@ proto.user.LoggedInResponse.prototype.setRole = function(value) {
1141
1153
  };
1142
1154
 
1143
1155
 
1156
+ /**
1157
+ * optional string permissions = 6;
1158
+ * @return {string}
1159
+ */
1160
+ proto.user.LoggedInResponse.prototype.getPermissions = function() {
1161
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
1162
+ };
1163
+
1164
+
1165
+ /**
1166
+ * @param {string} value
1167
+ * @return {!proto.user.LoggedInResponse} returns this
1168
+ */
1169
+ proto.user.LoggedInResponse.prototype.setPermissions = function(value) {
1170
+ return jspb.Message.setProto3StringField(this, 6, value);
1171
+ };
1172
+
1173
+
1144
1174
 
1145
1175
 
1146
1176