protobuf-platform 1.0.46 → 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 +1 -1
- package/user/user.proto +2 -0
- package/user/user_pb.js +62 -2
package/package.json
CHANGED
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;
|
@@ -59,6 +60,7 @@ message RolePermissionRequest {
|
|
59
60
|
optional string section_two = 3;
|
60
61
|
optional string section_three = 4;
|
61
62
|
string action_name = 5;
|
63
|
+
int32 action_value = 6;
|
62
64
|
}
|
63
65
|
message RolePermissionStatusResponse {
|
64
66
|
string status = 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
|
|
@@ -1993,7 +2023,8 @@ proto.user.RolePermissionRequest.toObject = function(includeInstance, msg) {
|
|
1993
2023
|
sectionOne: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
1994
2024
|
sectionTwo: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
1995
2025
|
sectionThree: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
1996
|
-
actionName: jspb.Message.getFieldWithDefault(msg, 5, "")
|
2026
|
+
actionName: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
2027
|
+
actionValue: jspb.Message.getFieldWithDefault(msg, 6, 0)
|
1997
2028
|
};
|
1998
2029
|
|
1999
2030
|
if (includeInstance) {
|
@@ -2050,6 +2081,10 @@ proto.user.RolePermissionRequest.deserializeBinaryFromReader = function(msg, rea
|
|
2050
2081
|
var value = /** @type {string} */ (reader.readString());
|
2051
2082
|
msg.setActionName(value);
|
2052
2083
|
break;
|
2084
|
+
case 6:
|
2085
|
+
var value = /** @type {number} */ (reader.readInt32());
|
2086
|
+
msg.setActionValue(value);
|
2087
|
+
break;
|
2053
2088
|
default:
|
2054
2089
|
reader.skipField();
|
2055
2090
|
break;
|
@@ -2114,6 +2149,13 @@ proto.user.RolePermissionRequest.serializeBinaryToWriter = function(message, wri
|
|
2114
2149
|
f
|
2115
2150
|
);
|
2116
2151
|
}
|
2152
|
+
f = message.getActionValue();
|
2153
|
+
if (f !== 0) {
|
2154
|
+
writer.writeInt32(
|
2155
|
+
6,
|
2156
|
+
f
|
2157
|
+
);
|
2158
|
+
}
|
2117
2159
|
};
|
2118
2160
|
|
2119
2161
|
|
@@ -2243,6 +2285,24 @@ proto.user.RolePermissionRequest.prototype.setActionName = function(value) {
|
|
2243
2285
|
};
|
2244
2286
|
|
2245
2287
|
|
2288
|
+
/**
|
2289
|
+
* optional int32 action_value = 6;
|
2290
|
+
* @return {number}
|
2291
|
+
*/
|
2292
|
+
proto.user.RolePermissionRequest.prototype.getActionValue = function() {
|
2293
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
2294
|
+
};
|
2295
|
+
|
2296
|
+
|
2297
|
+
/**
|
2298
|
+
* @param {number} value
|
2299
|
+
* @return {!proto.user.RolePermissionRequest} returns this
|
2300
|
+
*/
|
2301
|
+
proto.user.RolePermissionRequest.prototype.setActionValue = function(value) {
|
2302
|
+
return jspb.Message.setProto3IntField(this, 6, value);
|
2303
|
+
};
|
2304
|
+
|
2305
|
+
|
2246
2306
|
|
2247
2307
|
|
2248
2308
|
|