protobuf-platform 1.2.202 → 1.2.204

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.
@@ -18,6 +18,7 @@ service Cashback {
18
18
  rpc getCashbacksListForUser(CashbackUserRequest) returns (UserCashbackItemsResponse);
19
19
  rpc getUserCashbackByType(CashbackUserRequest) returns (UserCashbackResponse);
20
20
  rpc claimCashbackForUser(ClaimCashbackRequest) returns (ClaimCashbackResponse);
21
+ rpc reactivateCashbackForUser(ReactivateCashbackRequest) returns (UserCashbackResponse);
21
22
  }
22
23
  //Technical
23
24
  message PingRequest { string ping = 1; }
@@ -156,6 +157,11 @@ message ClaimCashbackRequest {
156
157
  int32 cashback_user_id = 2;
157
158
  optional string currency = 3;
158
159
  }
160
+ message ReactivateCashbackRequest {
161
+ int32 user_id = 1;
162
+ string cashback_type = 2;
163
+ optional string currency = 3;
164
+ }
159
165
  message ClaimCashbackResponse {
160
166
  string status = 1;
161
167
  }
@@ -180,6 +180,17 @@ function deserialize_cashback_PongResponse(buffer_arg) {
180
180
  return cashback_pb.PongResponse.deserializeBinary(new Uint8Array(buffer_arg));
181
181
  }
182
182
 
183
+ function serialize_cashback_ReactivateCashbackRequest(arg) {
184
+ if (!(arg instanceof cashback_pb.ReactivateCashbackRequest)) {
185
+ throw new Error('Expected argument of type cashback.ReactivateCashbackRequest');
186
+ }
187
+ return Buffer.from(arg.serializeBinary());
188
+ }
189
+
190
+ function deserialize_cashback_ReactivateCashbackRequest(buffer_arg) {
191
+ return cashback_pb.ReactivateCashbackRequest.deserializeBinary(new Uint8Array(buffer_arg));
192
+ }
193
+
183
194
  function serialize_cashback_UserCashbackItemsResponse(arg) {
184
195
  if (!(arg instanceof cashback_pb.UserCashbackItemsResponse)) {
185
196
  throw new Error('Expected argument of type cashback.UserCashbackItemsResponse');
@@ -349,6 +360,17 @@ getCashbackForUserByType: {
349
360
  responseSerialize: serialize_cashback_ClaimCashbackResponse,
350
361
  responseDeserialize: deserialize_cashback_ClaimCashbackResponse,
351
362
  },
363
+ reactivateCashbackForUser: {
364
+ path: '/cashback.Cashback/reactivateCashbackForUser',
365
+ requestStream: false,
366
+ responseStream: false,
367
+ requestType: cashback_pb.ReactivateCashbackRequest,
368
+ responseType: cashback_pb.UserCashbackResponse,
369
+ requestSerialize: serialize_cashback_ReactivateCashbackRequest,
370
+ requestDeserialize: deserialize_cashback_ReactivateCashbackRequest,
371
+ responseSerialize: serialize_cashback_UserCashbackResponse,
372
+ responseDeserialize: deserialize_cashback_UserCashbackResponse,
373
+ },
352
374
  };
353
375
 
354
376
  exports.CashbackClient = grpc.makeGenericClientConstructor(CashbackService, 'Cashback');
@@ -42,6 +42,7 @@ goog.exportSymbol('proto.cashback.ItemsBunchRequest', null, global);
42
42
  goog.exportSymbol('proto.cashback.PaginationRequest', null, global);
43
43
  goog.exportSymbol('proto.cashback.PingRequest', null, global);
44
44
  goog.exportSymbol('proto.cashback.PongResponse', null, global);
45
+ goog.exportSymbol('proto.cashback.ReactivateCashbackRequest', null, global);
45
46
  goog.exportSymbol('proto.cashback.SearchRequest', null, global);
46
47
  goog.exportSymbol('proto.cashback.UserCashbackItem', null, global);
47
48
  goog.exportSymbol('proto.cashback.UserCashbackItemsResponse', null, global);
@@ -530,6 +531,27 @@ if (goog.DEBUG && !COMPILED) {
530
531
  */
531
532
  proto.cashback.ClaimCashbackRequest.displayName = 'proto.cashback.ClaimCashbackRequest';
532
533
  }
534
+ /**
535
+ * Generated by JsPbCodeGenerator.
536
+ * @param {Array=} opt_data Optional initial data array, typically from a
537
+ * server response, or constructed directly in Javascript. The array is used
538
+ * in place and becomes part of the constructed object. It is not cloned.
539
+ * If no data is provided, the constructed object will be empty, but still
540
+ * valid.
541
+ * @extends {jspb.Message}
542
+ * @constructor
543
+ */
544
+ proto.cashback.ReactivateCashbackRequest = function(opt_data) {
545
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
546
+ };
547
+ goog.inherits(proto.cashback.ReactivateCashbackRequest, jspb.Message);
548
+ if (goog.DEBUG && !COMPILED) {
549
+ /**
550
+ * @public
551
+ * @override
552
+ */
553
+ proto.cashback.ReactivateCashbackRequest.displayName = 'proto.cashback.ReactivateCashbackRequest';
554
+ }
533
555
  /**
534
556
  * Generated by JsPbCodeGenerator.
535
557
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -6831,6 +6853,214 @@ proto.cashback.ClaimCashbackRequest.prototype.hasCurrency = function() {
6831
6853
 
6832
6854
 
6833
6855
 
6856
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6857
+ /**
6858
+ * Creates an object representation of this proto.
6859
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6860
+ * Optional fields that are not set will be set to undefined.
6861
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6862
+ * For the list of reserved names please see:
6863
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6864
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6865
+ * JSPB instance for transitional soy proto support:
6866
+ * http://goto/soy-param-migration
6867
+ * @return {!Object}
6868
+ */
6869
+ proto.cashback.ReactivateCashbackRequest.prototype.toObject = function(opt_includeInstance) {
6870
+ return proto.cashback.ReactivateCashbackRequest.toObject(opt_includeInstance, this);
6871
+ };
6872
+
6873
+
6874
+ /**
6875
+ * Static version of the {@see toObject} method.
6876
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6877
+ * the JSPB instance for transitional soy proto support:
6878
+ * http://goto/soy-param-migration
6879
+ * @param {!proto.cashback.ReactivateCashbackRequest} msg The msg instance to transform.
6880
+ * @return {!Object}
6881
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6882
+ */
6883
+ proto.cashback.ReactivateCashbackRequest.toObject = function(includeInstance, msg) {
6884
+ var f, obj = {
6885
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
6886
+ cashbackType: jspb.Message.getFieldWithDefault(msg, 2, ""),
6887
+ currency: jspb.Message.getFieldWithDefault(msg, 3, "")
6888
+ };
6889
+
6890
+ if (includeInstance) {
6891
+ obj.$jspbMessageInstance = msg;
6892
+ }
6893
+ return obj;
6894
+ };
6895
+ }
6896
+
6897
+
6898
+ /**
6899
+ * Deserializes binary data (in protobuf wire format).
6900
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
6901
+ * @return {!proto.cashback.ReactivateCashbackRequest}
6902
+ */
6903
+ proto.cashback.ReactivateCashbackRequest.deserializeBinary = function(bytes) {
6904
+ var reader = new jspb.BinaryReader(bytes);
6905
+ var msg = new proto.cashback.ReactivateCashbackRequest;
6906
+ return proto.cashback.ReactivateCashbackRequest.deserializeBinaryFromReader(msg, reader);
6907
+ };
6908
+
6909
+
6910
+ /**
6911
+ * Deserializes binary data (in protobuf wire format) from the
6912
+ * given reader into the given message object.
6913
+ * @param {!proto.cashback.ReactivateCashbackRequest} msg The message object to deserialize into.
6914
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6915
+ * @return {!proto.cashback.ReactivateCashbackRequest}
6916
+ */
6917
+ proto.cashback.ReactivateCashbackRequest.deserializeBinaryFromReader = function(msg, reader) {
6918
+ while (reader.nextField()) {
6919
+ if (reader.isEndGroup()) {
6920
+ break;
6921
+ }
6922
+ var field = reader.getFieldNumber();
6923
+ switch (field) {
6924
+ case 1:
6925
+ var value = /** @type {number} */ (reader.readInt32());
6926
+ msg.setUserId(value);
6927
+ break;
6928
+ case 2:
6929
+ var value = /** @type {string} */ (reader.readString());
6930
+ msg.setCashbackType(value);
6931
+ break;
6932
+ case 3:
6933
+ var value = /** @type {string} */ (reader.readString());
6934
+ msg.setCurrency(value);
6935
+ break;
6936
+ default:
6937
+ reader.skipField();
6938
+ break;
6939
+ }
6940
+ }
6941
+ return msg;
6942
+ };
6943
+
6944
+
6945
+ /**
6946
+ * Serializes the message to binary data (in protobuf wire format).
6947
+ * @return {!Uint8Array}
6948
+ */
6949
+ proto.cashback.ReactivateCashbackRequest.prototype.serializeBinary = function() {
6950
+ var writer = new jspb.BinaryWriter();
6951
+ proto.cashback.ReactivateCashbackRequest.serializeBinaryToWriter(this, writer);
6952
+ return writer.getResultBuffer();
6953
+ };
6954
+
6955
+
6956
+ /**
6957
+ * Serializes the given message to binary data (in protobuf wire
6958
+ * format), writing to the given BinaryWriter.
6959
+ * @param {!proto.cashback.ReactivateCashbackRequest} message
6960
+ * @param {!jspb.BinaryWriter} writer
6961
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6962
+ */
6963
+ proto.cashback.ReactivateCashbackRequest.serializeBinaryToWriter = function(message, writer) {
6964
+ var f = undefined;
6965
+ f = message.getUserId();
6966
+ if (f !== 0) {
6967
+ writer.writeInt32(
6968
+ 1,
6969
+ f
6970
+ );
6971
+ }
6972
+ f = message.getCashbackType();
6973
+ if (f.length > 0) {
6974
+ writer.writeString(
6975
+ 2,
6976
+ f
6977
+ );
6978
+ }
6979
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
6980
+ if (f != null) {
6981
+ writer.writeString(
6982
+ 3,
6983
+ f
6984
+ );
6985
+ }
6986
+ };
6987
+
6988
+
6989
+ /**
6990
+ * optional int32 user_id = 1;
6991
+ * @return {number}
6992
+ */
6993
+ proto.cashback.ReactivateCashbackRequest.prototype.getUserId = function() {
6994
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
6995
+ };
6996
+
6997
+
6998
+ /**
6999
+ * @param {number} value
7000
+ * @return {!proto.cashback.ReactivateCashbackRequest} returns this
7001
+ */
7002
+ proto.cashback.ReactivateCashbackRequest.prototype.setUserId = function(value) {
7003
+ return jspb.Message.setProto3IntField(this, 1, value);
7004
+ };
7005
+
7006
+
7007
+ /**
7008
+ * optional string cashback_type = 2;
7009
+ * @return {string}
7010
+ */
7011
+ proto.cashback.ReactivateCashbackRequest.prototype.getCashbackType = function() {
7012
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
7013
+ };
7014
+
7015
+
7016
+ /**
7017
+ * @param {string} value
7018
+ * @return {!proto.cashback.ReactivateCashbackRequest} returns this
7019
+ */
7020
+ proto.cashback.ReactivateCashbackRequest.prototype.setCashbackType = function(value) {
7021
+ return jspb.Message.setProto3StringField(this, 2, value);
7022
+ };
7023
+
7024
+
7025
+ /**
7026
+ * optional string currency = 3;
7027
+ * @return {string}
7028
+ */
7029
+ proto.cashback.ReactivateCashbackRequest.prototype.getCurrency = function() {
7030
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
7031
+ };
7032
+
7033
+
7034
+ /**
7035
+ * @param {string} value
7036
+ * @return {!proto.cashback.ReactivateCashbackRequest} returns this
7037
+ */
7038
+ proto.cashback.ReactivateCashbackRequest.prototype.setCurrency = function(value) {
7039
+ return jspb.Message.setField(this, 3, value);
7040
+ };
7041
+
7042
+
7043
+ /**
7044
+ * Clears the field making it undefined.
7045
+ * @return {!proto.cashback.ReactivateCashbackRequest} returns this
7046
+ */
7047
+ proto.cashback.ReactivateCashbackRequest.prototype.clearCurrency = function() {
7048
+ return jspb.Message.setField(this, 3, undefined);
7049
+ };
7050
+
7051
+
7052
+ /**
7053
+ * Returns whether this field is set.
7054
+ * @return {boolean}
7055
+ */
7056
+ proto.cashback.ReactivateCashbackRequest.prototype.hasCurrency = function() {
7057
+ return jspb.Message.getField(this, 3) != null;
7058
+ };
7059
+
7060
+
7061
+
7062
+
7063
+
6834
7064
  if (jspb.Message.GENERATE_TO_OBJECT) {
6835
7065
  /**
6836
7066
  * Creates an object representation of this proto.
package/game/game.proto CHANGED
@@ -715,6 +715,7 @@ message CashbackGamePreview {
715
715
  optional int32 game_id = 4;
716
716
  optional string provider_title = 5;
717
717
  optional string provider_image = 6;
718
+ optional string provider_image_cdn = 7;
718
719
  }
719
720
  message CashBackListGamesItem {
720
721
  int32 cashback_list_id = 1;
package/game/game_pb.js CHANGED
@@ -29884,7 +29884,8 @@ proto.game.CashbackGamePreview.toObject = function(includeInstance, msg) {
29884
29884
  image: jspb.Message.getFieldWithDefault(msg, 3, ""),
29885
29885
  gameId: jspb.Message.getFieldWithDefault(msg, 4, 0),
29886
29886
  providerTitle: jspb.Message.getFieldWithDefault(msg, 5, ""),
29887
- providerImage: jspb.Message.getFieldWithDefault(msg, 6, "")
29887
+ providerImage: jspb.Message.getFieldWithDefault(msg, 6, ""),
29888
+ providerImageCdn: jspb.Message.getFieldWithDefault(msg, 7, "")
29888
29889
  };
29889
29890
 
29890
29891
  if (includeInstance) {
@@ -29945,6 +29946,10 @@ proto.game.CashbackGamePreview.deserializeBinaryFromReader = function(msg, reade
29945
29946
  var value = /** @type {string} */ (reader.readString());
29946
29947
  msg.setProviderImage(value);
29947
29948
  break;
29949
+ case 7:
29950
+ var value = /** @type {string} */ (reader.readString());
29951
+ msg.setProviderImageCdn(value);
29952
+ break;
29948
29953
  default:
29949
29954
  reader.skipField();
29950
29955
  break;
@@ -30016,6 +30021,13 @@ proto.game.CashbackGamePreview.serializeBinaryToWriter = function(message, write
30016
30021
  f
30017
30022
  );
30018
30023
  }
30024
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
30025
+ if (f != null) {
30026
+ writer.writeString(
30027
+ 7,
30028
+ f
30029
+ );
30030
+ }
30019
30031
  };
30020
30032
 
30021
30033
 
@@ -30181,6 +30193,42 @@ proto.game.CashbackGamePreview.prototype.hasProviderImage = function() {
30181
30193
  };
30182
30194
 
30183
30195
 
30196
+ /**
30197
+ * optional string provider_image_cdn = 7;
30198
+ * @return {string}
30199
+ */
30200
+ proto.game.CashbackGamePreview.prototype.getProviderImageCdn = function() {
30201
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
30202
+ };
30203
+
30204
+
30205
+ /**
30206
+ * @param {string} value
30207
+ * @return {!proto.game.CashbackGamePreview} returns this
30208
+ */
30209
+ proto.game.CashbackGamePreview.prototype.setProviderImageCdn = function(value) {
30210
+ return jspb.Message.setField(this, 7, value);
30211
+ };
30212
+
30213
+
30214
+ /**
30215
+ * Clears the field making it undefined.
30216
+ * @return {!proto.game.CashbackGamePreview} returns this
30217
+ */
30218
+ proto.game.CashbackGamePreview.prototype.clearProviderImageCdn = function() {
30219
+ return jspb.Message.setField(this, 7, undefined);
30220
+ };
30221
+
30222
+
30223
+ /**
30224
+ * Returns whether this field is set.
30225
+ * @return {boolean}
30226
+ */
30227
+ proto.game.CashbackGamePreview.prototype.hasProviderImageCdn = function() {
30228
+ return jspb.Message.getField(this, 7) != null;
30229
+ };
30230
+
30231
+
30184
30232
 
30185
30233
  /**
30186
30234
  * List of repeated fields within this message type.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.202",
3
+ "version": "1.2.204",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {