protobuf-platform 1.2.194 → 1.2.195
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/cashback/cashback.proto +4 -0
- package/cashback/cashback_grpc_pb.js +22 -0
- package/cashback/cashback_pb.js +173 -0
- package/package.json +1 -1
package/cashback/cashback.proto
CHANGED
|
@@ -16,6 +16,7 @@ service Cashback {
|
|
|
16
16
|
//User
|
|
17
17
|
rpc getCashbackForUserByType(CashbackUserRequest) returns (CashbackResponse);
|
|
18
18
|
rpc getCashbacksListForUser(CashbackUserRequest) returns (UserCashbackItemsResponse);
|
|
19
|
+
rpc getUserCashbackByType(CashbackUserRequest) returns (UserCashbackResponse);
|
|
19
20
|
rpc claimCashbackForUser(ClaimCashbackRequest) returns (ClaimCashbackResponse);
|
|
20
21
|
}
|
|
21
22
|
//Technical
|
|
@@ -158,4 +159,7 @@ message ClaimCashbackRequest {
|
|
|
158
159
|
message ClaimCashbackResponse {
|
|
159
160
|
string status = 1;
|
|
160
161
|
}
|
|
162
|
+
message UserCashbackResponse {
|
|
163
|
+
UserCashbackItem data = 1;
|
|
164
|
+
}
|
|
161
165
|
|
|
@@ -191,6 +191,17 @@ function deserialize_cashback_UserCashbackItemsResponse(buffer_arg) {
|
|
|
191
191
|
return cashback_pb.UserCashbackItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
192
192
|
}
|
|
193
193
|
|
|
194
|
+
function serialize_cashback_UserCashbackResponse(arg) {
|
|
195
|
+
if (!(arg instanceof cashback_pb.UserCashbackResponse)) {
|
|
196
|
+
throw new Error('Expected argument of type cashback.UserCashbackResponse');
|
|
197
|
+
}
|
|
198
|
+
return Buffer.from(arg.serializeBinary());
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
function deserialize_cashback_UserCashbackResponse(buffer_arg) {
|
|
202
|
+
return cashback_pb.UserCashbackResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
203
|
+
}
|
|
204
|
+
|
|
194
205
|
|
|
195
206
|
var CashbackService = exports.CashbackService = {
|
|
196
207
|
checkConnection: {
|
|
@@ -316,6 +327,17 @@ getCashbackForUserByType: {
|
|
|
316
327
|
responseSerialize: serialize_cashback_UserCashbackItemsResponse,
|
|
317
328
|
responseDeserialize: deserialize_cashback_UserCashbackItemsResponse,
|
|
318
329
|
},
|
|
330
|
+
getUserCashbackByType: {
|
|
331
|
+
path: '/cashback.Cashback/getUserCashbackByType',
|
|
332
|
+
requestStream: false,
|
|
333
|
+
responseStream: false,
|
|
334
|
+
requestType: cashback_pb.CashbackUserRequest,
|
|
335
|
+
responseType: cashback_pb.UserCashbackResponse,
|
|
336
|
+
requestSerialize: serialize_cashback_CashbackUserRequest,
|
|
337
|
+
requestDeserialize: deserialize_cashback_CashbackUserRequest,
|
|
338
|
+
responseSerialize: serialize_cashback_UserCashbackResponse,
|
|
339
|
+
responseDeserialize: deserialize_cashback_UserCashbackResponse,
|
|
340
|
+
},
|
|
319
341
|
claimCashbackForUser: {
|
|
320
342
|
path: '/cashback.Cashback/claimCashbackForUser',
|
|
321
343
|
requestStream: false,
|
package/cashback/cashback_pb.js
CHANGED
|
@@ -45,6 +45,7 @@ goog.exportSymbol('proto.cashback.PongResponse', null, global);
|
|
|
45
45
|
goog.exportSymbol('proto.cashback.SearchRequest', null, global);
|
|
46
46
|
goog.exportSymbol('proto.cashback.UserCashbackItem', null, global);
|
|
47
47
|
goog.exportSymbol('proto.cashback.UserCashbackItemsResponse', null, global);
|
|
48
|
+
goog.exportSymbol('proto.cashback.UserCashbackResponse', null, global);
|
|
48
49
|
goog.exportSymbol('proto.cashback.UserSearchRequest', null, global);
|
|
49
50
|
/**
|
|
50
51
|
* Generated by JsPbCodeGenerator.
|
|
@@ -550,6 +551,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
550
551
|
*/
|
|
551
552
|
proto.cashback.ClaimCashbackResponse.displayName = 'proto.cashback.ClaimCashbackResponse';
|
|
552
553
|
}
|
|
554
|
+
/**
|
|
555
|
+
* Generated by JsPbCodeGenerator.
|
|
556
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
557
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
558
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
559
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
560
|
+
* valid.
|
|
561
|
+
* @extends {jspb.Message}
|
|
562
|
+
* @constructor
|
|
563
|
+
*/
|
|
564
|
+
proto.cashback.UserCashbackResponse = function(opt_data) {
|
|
565
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
566
|
+
};
|
|
567
|
+
goog.inherits(proto.cashback.UserCashbackResponse, jspb.Message);
|
|
568
|
+
if (goog.DEBUG && !COMPILED) {
|
|
569
|
+
/**
|
|
570
|
+
* @public
|
|
571
|
+
* @override
|
|
572
|
+
*/
|
|
573
|
+
proto.cashback.UserCashbackResponse.displayName = 'proto.cashback.UserCashbackResponse';
|
|
574
|
+
}
|
|
553
575
|
|
|
554
576
|
|
|
555
577
|
|
|
@@ -6936,4 +6958,155 @@ proto.cashback.ClaimCashbackResponse.prototype.setStatus = function(value) {
|
|
|
6936
6958
|
};
|
|
6937
6959
|
|
|
6938
6960
|
|
|
6961
|
+
|
|
6962
|
+
|
|
6963
|
+
|
|
6964
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6965
|
+
/**
|
|
6966
|
+
* Creates an object representation of this proto.
|
|
6967
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
6968
|
+
* Optional fields that are not set will be set to undefined.
|
|
6969
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
6970
|
+
* For the list of reserved names please see:
|
|
6971
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
6972
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
6973
|
+
* JSPB instance for transitional soy proto support:
|
|
6974
|
+
* http://goto/soy-param-migration
|
|
6975
|
+
* @return {!Object}
|
|
6976
|
+
*/
|
|
6977
|
+
proto.cashback.UserCashbackResponse.prototype.toObject = function(opt_includeInstance) {
|
|
6978
|
+
return proto.cashback.UserCashbackResponse.toObject(opt_includeInstance, this);
|
|
6979
|
+
};
|
|
6980
|
+
|
|
6981
|
+
|
|
6982
|
+
/**
|
|
6983
|
+
* Static version of the {@see toObject} method.
|
|
6984
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
6985
|
+
* the JSPB instance for transitional soy proto support:
|
|
6986
|
+
* http://goto/soy-param-migration
|
|
6987
|
+
* @param {!proto.cashback.UserCashbackResponse} msg The msg instance to transform.
|
|
6988
|
+
* @return {!Object}
|
|
6989
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6990
|
+
*/
|
|
6991
|
+
proto.cashback.UserCashbackResponse.toObject = function(includeInstance, msg) {
|
|
6992
|
+
var f, obj = {
|
|
6993
|
+
data: (f = msg.getData()) && proto.cashback.UserCashbackItem.toObject(includeInstance, f)
|
|
6994
|
+
};
|
|
6995
|
+
|
|
6996
|
+
if (includeInstance) {
|
|
6997
|
+
obj.$jspbMessageInstance = msg;
|
|
6998
|
+
}
|
|
6999
|
+
return obj;
|
|
7000
|
+
};
|
|
7001
|
+
}
|
|
7002
|
+
|
|
7003
|
+
|
|
7004
|
+
/**
|
|
7005
|
+
* Deserializes binary data (in protobuf wire format).
|
|
7006
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
7007
|
+
* @return {!proto.cashback.UserCashbackResponse}
|
|
7008
|
+
*/
|
|
7009
|
+
proto.cashback.UserCashbackResponse.deserializeBinary = function(bytes) {
|
|
7010
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
7011
|
+
var msg = new proto.cashback.UserCashbackResponse;
|
|
7012
|
+
return proto.cashback.UserCashbackResponse.deserializeBinaryFromReader(msg, reader);
|
|
7013
|
+
};
|
|
7014
|
+
|
|
7015
|
+
|
|
7016
|
+
/**
|
|
7017
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
7018
|
+
* given reader into the given message object.
|
|
7019
|
+
* @param {!proto.cashback.UserCashbackResponse} msg The message object to deserialize into.
|
|
7020
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
7021
|
+
* @return {!proto.cashback.UserCashbackResponse}
|
|
7022
|
+
*/
|
|
7023
|
+
proto.cashback.UserCashbackResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
7024
|
+
while (reader.nextField()) {
|
|
7025
|
+
if (reader.isEndGroup()) {
|
|
7026
|
+
break;
|
|
7027
|
+
}
|
|
7028
|
+
var field = reader.getFieldNumber();
|
|
7029
|
+
switch (field) {
|
|
7030
|
+
case 1:
|
|
7031
|
+
var value = new proto.cashback.UserCashbackItem;
|
|
7032
|
+
reader.readMessage(value,proto.cashback.UserCashbackItem.deserializeBinaryFromReader);
|
|
7033
|
+
msg.setData(value);
|
|
7034
|
+
break;
|
|
7035
|
+
default:
|
|
7036
|
+
reader.skipField();
|
|
7037
|
+
break;
|
|
7038
|
+
}
|
|
7039
|
+
}
|
|
7040
|
+
return msg;
|
|
7041
|
+
};
|
|
7042
|
+
|
|
7043
|
+
|
|
7044
|
+
/**
|
|
7045
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
7046
|
+
* @return {!Uint8Array}
|
|
7047
|
+
*/
|
|
7048
|
+
proto.cashback.UserCashbackResponse.prototype.serializeBinary = function() {
|
|
7049
|
+
var writer = new jspb.BinaryWriter();
|
|
7050
|
+
proto.cashback.UserCashbackResponse.serializeBinaryToWriter(this, writer);
|
|
7051
|
+
return writer.getResultBuffer();
|
|
7052
|
+
};
|
|
7053
|
+
|
|
7054
|
+
|
|
7055
|
+
/**
|
|
7056
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
7057
|
+
* format), writing to the given BinaryWriter.
|
|
7058
|
+
* @param {!proto.cashback.UserCashbackResponse} message
|
|
7059
|
+
* @param {!jspb.BinaryWriter} writer
|
|
7060
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7061
|
+
*/
|
|
7062
|
+
proto.cashback.UserCashbackResponse.serializeBinaryToWriter = function(message, writer) {
|
|
7063
|
+
var f = undefined;
|
|
7064
|
+
f = message.getData();
|
|
7065
|
+
if (f != null) {
|
|
7066
|
+
writer.writeMessage(
|
|
7067
|
+
1,
|
|
7068
|
+
f,
|
|
7069
|
+
proto.cashback.UserCashbackItem.serializeBinaryToWriter
|
|
7070
|
+
);
|
|
7071
|
+
}
|
|
7072
|
+
};
|
|
7073
|
+
|
|
7074
|
+
|
|
7075
|
+
/**
|
|
7076
|
+
* optional UserCashbackItem data = 1;
|
|
7077
|
+
* @return {?proto.cashback.UserCashbackItem}
|
|
7078
|
+
*/
|
|
7079
|
+
proto.cashback.UserCashbackResponse.prototype.getData = function() {
|
|
7080
|
+
return /** @type{?proto.cashback.UserCashbackItem} */ (
|
|
7081
|
+
jspb.Message.getWrapperField(this, proto.cashback.UserCashbackItem, 1));
|
|
7082
|
+
};
|
|
7083
|
+
|
|
7084
|
+
|
|
7085
|
+
/**
|
|
7086
|
+
* @param {?proto.cashback.UserCashbackItem|undefined} value
|
|
7087
|
+
* @return {!proto.cashback.UserCashbackResponse} returns this
|
|
7088
|
+
*/
|
|
7089
|
+
proto.cashback.UserCashbackResponse.prototype.setData = function(value) {
|
|
7090
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
7091
|
+
};
|
|
7092
|
+
|
|
7093
|
+
|
|
7094
|
+
/**
|
|
7095
|
+
* Clears the message field making it undefined.
|
|
7096
|
+
* @return {!proto.cashback.UserCashbackResponse} returns this
|
|
7097
|
+
*/
|
|
7098
|
+
proto.cashback.UserCashbackResponse.prototype.clearData = function() {
|
|
7099
|
+
return this.setData(undefined);
|
|
7100
|
+
};
|
|
7101
|
+
|
|
7102
|
+
|
|
7103
|
+
/**
|
|
7104
|
+
* Returns whether this field is set.
|
|
7105
|
+
* @return {boolean}
|
|
7106
|
+
*/
|
|
7107
|
+
proto.cashback.UserCashbackResponse.prototype.hasData = function() {
|
|
7108
|
+
return jspb.Message.getField(this, 1) != null;
|
|
7109
|
+
};
|
|
7110
|
+
|
|
7111
|
+
|
|
6939
7112
|
goog.object.extend(exports, proto.cashback);
|