protobuf-platform 1.0.177 → 1.0.179
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/loyalty/loyalty.proto +2 -1
- package/loyalty/loyalty_pb.js +80 -2
- package/package.json +1 -1
package/loyalty/loyalty.proto
CHANGED
@@ -21,7 +21,7 @@ service Loyalty {
|
|
21
21
|
|
22
22
|
message PingRequest { string ping = 1; }
|
23
23
|
message PongResponse { string pong = 1; }
|
24
|
-
message PaginationRequest { int32 limit = 1; int32 offset = 2; optional LoyaltySearchRequest loyalty_search_params = 3; }
|
24
|
+
message PaginationRequest { int32 limit = 1; int32 offset = 2; optional LoyaltySearchRequest loyalty_search_params = 3; optional string type = 4; }
|
25
25
|
message LoyaltySearchRequest {
|
26
26
|
optional int32 loyalty_id = 1;
|
27
27
|
optional int32 user_id = 2;
|
@@ -111,6 +111,7 @@ message PointRequest {
|
|
111
111
|
}
|
112
112
|
message GetPointRequest {
|
113
113
|
int32 id = 1;
|
114
|
+
string type = 2;
|
114
115
|
}
|
115
116
|
//Point CRUD | Responses
|
116
117
|
message PointResponse {
|
package/loyalty/loyalty_pb.js
CHANGED
@@ -800,7 +800,8 @@ proto.loyalty.PaginationRequest.toObject = function(includeInstance, msg) {
|
|
800
800
|
var f, obj = {
|
801
801
|
limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
802
802
|
offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
803
|
-
loyaltySearchParams: (f = msg.getLoyaltySearchParams()) && proto.loyalty.LoyaltySearchRequest.toObject(includeInstance, f)
|
803
|
+
loyaltySearchParams: (f = msg.getLoyaltySearchParams()) && proto.loyalty.LoyaltySearchRequest.toObject(includeInstance, f),
|
804
|
+
type: jspb.Message.getFieldWithDefault(msg, 4, "")
|
804
805
|
};
|
805
806
|
|
806
807
|
if (includeInstance) {
|
@@ -850,6 +851,10 @@ proto.loyalty.PaginationRequest.deserializeBinaryFromReader = function(msg, read
|
|
850
851
|
reader.readMessage(value,proto.loyalty.LoyaltySearchRequest.deserializeBinaryFromReader);
|
851
852
|
msg.setLoyaltySearchParams(value);
|
852
853
|
break;
|
854
|
+
case 4:
|
855
|
+
var value = /** @type {string} */ (reader.readString());
|
856
|
+
msg.setType(value);
|
857
|
+
break;
|
853
858
|
default:
|
854
859
|
reader.skipField();
|
855
860
|
break;
|
@@ -901,6 +906,13 @@ proto.loyalty.PaginationRequest.serializeBinaryToWriter = function(message, writ
|
|
901
906
|
proto.loyalty.LoyaltySearchRequest.serializeBinaryToWriter
|
902
907
|
);
|
903
908
|
}
|
909
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
910
|
+
if (f != null) {
|
911
|
+
writer.writeString(
|
912
|
+
4,
|
913
|
+
f
|
914
|
+
);
|
915
|
+
}
|
904
916
|
};
|
905
917
|
|
906
918
|
|
@@ -977,6 +989,42 @@ proto.loyalty.PaginationRequest.prototype.hasLoyaltySearchParams = function() {
|
|
977
989
|
};
|
978
990
|
|
979
991
|
|
992
|
+
/**
|
993
|
+
* optional string type = 4;
|
994
|
+
* @return {string}
|
995
|
+
*/
|
996
|
+
proto.loyalty.PaginationRequest.prototype.getType = function() {
|
997
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
998
|
+
};
|
999
|
+
|
1000
|
+
|
1001
|
+
/**
|
1002
|
+
* @param {string} value
|
1003
|
+
* @return {!proto.loyalty.PaginationRequest} returns this
|
1004
|
+
*/
|
1005
|
+
proto.loyalty.PaginationRequest.prototype.setType = function(value) {
|
1006
|
+
return jspb.Message.setField(this, 4, value);
|
1007
|
+
};
|
1008
|
+
|
1009
|
+
|
1010
|
+
/**
|
1011
|
+
* Clears the field making it undefined.
|
1012
|
+
* @return {!proto.loyalty.PaginationRequest} returns this
|
1013
|
+
*/
|
1014
|
+
proto.loyalty.PaginationRequest.prototype.clearType = function() {
|
1015
|
+
return jspb.Message.setField(this, 4, undefined);
|
1016
|
+
};
|
1017
|
+
|
1018
|
+
|
1019
|
+
/**
|
1020
|
+
* Returns whether this field is set.
|
1021
|
+
* @return {boolean}
|
1022
|
+
*/
|
1023
|
+
proto.loyalty.PaginationRequest.prototype.hasType = function() {
|
1024
|
+
return jspb.Message.getField(this, 4) != null;
|
1025
|
+
};
|
1026
|
+
|
1027
|
+
|
980
1028
|
|
981
1029
|
|
982
1030
|
|
@@ -4824,7 +4872,8 @@ proto.loyalty.GetPointRequest.prototype.toObject = function(opt_includeInstance)
|
|
4824
4872
|
*/
|
4825
4873
|
proto.loyalty.GetPointRequest.toObject = function(includeInstance, msg) {
|
4826
4874
|
var f, obj = {
|
4827
|
-
id: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
4875
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
4876
|
+
type: jspb.Message.getFieldWithDefault(msg, 2, "")
|
4828
4877
|
};
|
4829
4878
|
|
4830
4879
|
if (includeInstance) {
|
@@ -4865,6 +4914,10 @@ proto.loyalty.GetPointRequest.deserializeBinaryFromReader = function(msg, reader
|
|
4865
4914
|
var value = /** @type {number} */ (reader.readInt32());
|
4866
4915
|
msg.setId(value);
|
4867
4916
|
break;
|
4917
|
+
case 2:
|
4918
|
+
var value = /** @type {string} */ (reader.readString());
|
4919
|
+
msg.setType(value);
|
4920
|
+
break;
|
4868
4921
|
default:
|
4869
4922
|
reader.skipField();
|
4870
4923
|
break;
|
@@ -4901,6 +4954,13 @@ proto.loyalty.GetPointRequest.serializeBinaryToWriter = function(message, writer
|
|
4901
4954
|
f
|
4902
4955
|
);
|
4903
4956
|
}
|
4957
|
+
f = message.getType();
|
4958
|
+
if (f.length > 0) {
|
4959
|
+
writer.writeString(
|
4960
|
+
2,
|
4961
|
+
f
|
4962
|
+
);
|
4963
|
+
}
|
4904
4964
|
};
|
4905
4965
|
|
4906
4966
|
|
@@ -4922,6 +4982,24 @@ proto.loyalty.GetPointRequest.prototype.setId = function(value) {
|
|
4922
4982
|
};
|
4923
4983
|
|
4924
4984
|
|
4985
|
+
/**
|
4986
|
+
* optional string type = 2;
|
4987
|
+
* @return {string}
|
4988
|
+
*/
|
4989
|
+
proto.loyalty.GetPointRequest.prototype.getType = function() {
|
4990
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
4991
|
+
};
|
4992
|
+
|
4993
|
+
|
4994
|
+
/**
|
4995
|
+
* @param {string} value
|
4996
|
+
* @return {!proto.loyalty.GetPointRequest} returns this
|
4997
|
+
*/
|
4998
|
+
proto.loyalty.GetPointRequest.prototype.setType = function(value) {
|
4999
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
5000
|
+
};
|
5001
|
+
|
5002
|
+
|
4925
5003
|
|
4926
5004
|
|
4927
5005
|
|