protobuf-platform 1.0.291 → 1.0.292

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/game/game.proto CHANGED
@@ -82,6 +82,8 @@ service Game {
82
82
  rpc deleteSingleCashBackList(GetCashBackListRequest) returns (GameStatusResponse);
83
83
  rpc getArrayCashBackList(PaginationRequest) returns (CashBackListItemsResponse);
84
84
  rpc addGamesIntoCashBackList(CashBackListGamesRequest) returns (GameStatusResponse);
85
+ rpc fetchGamesFromCashBackList(PaginationRequest) returns (GameItemsResponse);
86
+ rpc notProcessedGamesInCashBackList(PaginationRequest) returns (GameItemsResponse);
85
87
  //Dashboard
86
88
  rpc getDashboardInfo(DashboardRequest) returns (DashboardResponse);
87
89
  //SEO
@@ -97,6 +99,7 @@ message PaginationRequest {
97
99
  optional bool admin_side = 3;
98
100
  optional GameSearchRequest game_search_params = 4;
99
101
  optional WagerSearchRequest wager_search_params = 5;
102
+ optional CashBackSearchRequest cash_back_search_params = 6;
100
103
  }
101
104
  message GameSearchRequest {
102
105
  optional int32 is_active = 1;
@@ -118,6 +121,11 @@ message WagerSearchRequest {
118
121
  optional string game_title = 2;
119
122
  repeated int32 wager_ids = 3;
120
123
  }
124
+ message CashBackSearchRequest {
125
+ optional int32 cashback_id = 1;
126
+ optional string game_title = 2;
127
+ repeated int32 cashback_ids = 3;
128
+ }
121
129
  //Media
122
130
  message File { bytes media = 1; }
123
131
  message GetFileRequest { string file_name = 1; string instance_type = 2; }
@@ -1611,6 +1611,28 @@ readSingleCashBackList: {
1611
1611
  responseSerialize: serialize_game_GameStatusResponse,
1612
1612
  responseDeserialize: deserialize_game_GameStatusResponse,
1613
1613
  },
1614
+ fetchGamesFromCashBackList: {
1615
+ path: '/game.Game/fetchGamesFromCashBackList',
1616
+ requestStream: false,
1617
+ responseStream: false,
1618
+ requestType: game_pb.PaginationRequest,
1619
+ responseType: game_pb.GameItemsResponse,
1620
+ requestSerialize: serialize_game_PaginationRequest,
1621
+ requestDeserialize: deserialize_game_PaginationRequest,
1622
+ responseSerialize: serialize_game_GameItemsResponse,
1623
+ responseDeserialize: deserialize_game_GameItemsResponse,
1624
+ },
1625
+ notProcessedGamesInCashBackList: {
1626
+ path: '/game.Game/notProcessedGamesInCashBackList',
1627
+ requestStream: false,
1628
+ responseStream: false,
1629
+ requestType: game_pb.PaginationRequest,
1630
+ responseType: game_pb.GameItemsResponse,
1631
+ requestSerialize: serialize_game_PaginationRequest,
1632
+ requestDeserialize: deserialize_game_PaginationRequest,
1633
+ responseSerialize: serialize_game_GameItemsResponse,
1634
+ responseDeserialize: deserialize_game_GameItemsResponse,
1635
+ },
1614
1636
  // Dashboard
1615
1637
  getDashboardInfo: {
1616
1638
  path: '/game.Game/getDashboardInfo',
package/game/game_pb.js CHANGED
@@ -26,6 +26,7 @@ goog.exportSymbol('proto.game.CashBackListItem', null, global);
26
26
  goog.exportSymbol('proto.game.CashBackListItemsResponse', null, global);
27
27
  goog.exportSymbol('proto.game.CashBackListRequest', null, global);
28
28
  goog.exportSymbol('proto.game.CashBackListResponse', null, global);
29
+ goog.exportSymbol('proto.game.CashBackSearchRequest', null, global);
29
30
  goog.exportSymbol('proto.game.CategoryItem', null, global);
30
31
  goog.exportSymbol('proto.game.CategoryItemRequest', null, global);
31
32
  goog.exportSymbol('proto.game.CategoryItemsResponse', null, global);
@@ -224,6 +225,27 @@ if (goog.DEBUG && !COMPILED) {
224
225
  */
225
226
  proto.game.WagerSearchRequest.displayName = 'proto.game.WagerSearchRequest';
226
227
  }
228
+ /**
229
+ * Generated by JsPbCodeGenerator.
230
+ * @param {Array=} opt_data Optional initial data array, typically from a
231
+ * server response, or constructed directly in Javascript. The array is used
232
+ * in place and becomes part of the constructed object. It is not cloned.
233
+ * If no data is provided, the constructed object will be empty, but still
234
+ * valid.
235
+ * @extends {jspb.Message}
236
+ * @constructor
237
+ */
238
+ proto.game.CashBackSearchRequest = function(opt_data) {
239
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.game.CashBackSearchRequest.repeatedFields_, null);
240
+ };
241
+ goog.inherits(proto.game.CashBackSearchRequest, jspb.Message);
242
+ if (goog.DEBUG && !COMPILED) {
243
+ /**
244
+ * @public
245
+ * @override
246
+ */
247
+ proto.game.CashBackSearchRequest.displayName = 'proto.game.CashBackSearchRequest';
248
+ }
227
249
  /**
228
250
  * Generated by JsPbCodeGenerator.
229
251
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -2368,7 +2390,8 @@ proto.game.PaginationRequest.toObject = function(includeInstance, msg) {
2368
2390
  offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
2369
2391
  adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
2370
2392
  gameSearchParams: (f = msg.getGameSearchParams()) && proto.game.GameSearchRequest.toObject(includeInstance, f),
2371
- wagerSearchParams: (f = msg.getWagerSearchParams()) && proto.game.WagerSearchRequest.toObject(includeInstance, f)
2393
+ wagerSearchParams: (f = msg.getWagerSearchParams()) && proto.game.WagerSearchRequest.toObject(includeInstance, f),
2394
+ cashBackSearchParams: (f = msg.getCashBackSearchParams()) && proto.game.CashBackSearchRequest.toObject(includeInstance, f)
2372
2395
  };
2373
2396
 
2374
2397
  if (includeInstance) {
@@ -2427,6 +2450,11 @@ proto.game.PaginationRequest.deserializeBinaryFromReader = function(msg, reader)
2427
2450
  reader.readMessage(value,proto.game.WagerSearchRequest.deserializeBinaryFromReader);
2428
2451
  msg.setWagerSearchParams(value);
2429
2452
  break;
2453
+ case 6:
2454
+ var value = new proto.game.CashBackSearchRequest;
2455
+ reader.readMessage(value,proto.game.CashBackSearchRequest.deserializeBinaryFromReader);
2456
+ msg.setCashBackSearchParams(value);
2457
+ break;
2430
2458
  default:
2431
2459
  reader.skipField();
2432
2460
  break;
@@ -2493,6 +2521,14 @@ proto.game.PaginationRequest.serializeBinaryToWriter = function(message, writer)
2493
2521
  proto.game.WagerSearchRequest.serializeBinaryToWriter
2494
2522
  );
2495
2523
  }
2524
+ f = message.getCashBackSearchParams();
2525
+ if (f != null) {
2526
+ writer.writeMessage(
2527
+ 6,
2528
+ f,
2529
+ proto.game.CashBackSearchRequest.serializeBinaryToWriter
2530
+ );
2531
+ }
2496
2532
  };
2497
2533
 
2498
2534
 
@@ -2642,6 +2678,43 @@ proto.game.PaginationRequest.prototype.hasWagerSearchParams = function() {
2642
2678
  };
2643
2679
 
2644
2680
 
2681
+ /**
2682
+ * optional CashBackSearchRequest cash_back_search_params = 6;
2683
+ * @return {?proto.game.CashBackSearchRequest}
2684
+ */
2685
+ proto.game.PaginationRequest.prototype.getCashBackSearchParams = function() {
2686
+ return /** @type{?proto.game.CashBackSearchRequest} */ (
2687
+ jspb.Message.getWrapperField(this, proto.game.CashBackSearchRequest, 6));
2688
+ };
2689
+
2690
+
2691
+ /**
2692
+ * @param {?proto.game.CashBackSearchRequest|undefined} value
2693
+ * @return {!proto.game.PaginationRequest} returns this
2694
+ */
2695
+ proto.game.PaginationRequest.prototype.setCashBackSearchParams = function(value) {
2696
+ return jspb.Message.setWrapperField(this, 6, value);
2697
+ };
2698
+
2699
+
2700
+ /**
2701
+ * Clears the message field making it undefined.
2702
+ * @return {!proto.game.PaginationRequest} returns this
2703
+ */
2704
+ proto.game.PaginationRequest.prototype.clearCashBackSearchParams = function() {
2705
+ return this.setCashBackSearchParams(undefined);
2706
+ };
2707
+
2708
+
2709
+ /**
2710
+ * Returns whether this field is set.
2711
+ * @return {boolean}
2712
+ */
2713
+ proto.game.PaginationRequest.prototype.hasCashBackSearchParams = function() {
2714
+ return jspb.Message.getField(this, 6) != null;
2715
+ };
2716
+
2717
+
2645
2718
 
2646
2719
  /**
2647
2720
  * List of repeated fields within this message type.
@@ -3641,6 +3714,260 @@ proto.game.WagerSearchRequest.prototype.clearWagerIdsList = function() {
3641
3714
 
3642
3715
 
3643
3716
 
3717
+ /**
3718
+ * List of repeated fields within this message type.
3719
+ * @private {!Array<number>}
3720
+ * @const
3721
+ */
3722
+ proto.game.CashBackSearchRequest.repeatedFields_ = [3];
3723
+
3724
+
3725
+
3726
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3727
+ /**
3728
+ * Creates an object representation of this proto.
3729
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3730
+ * Optional fields that are not set will be set to undefined.
3731
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3732
+ * For the list of reserved names please see:
3733
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3734
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3735
+ * JSPB instance for transitional soy proto support:
3736
+ * http://goto/soy-param-migration
3737
+ * @return {!Object}
3738
+ */
3739
+ proto.game.CashBackSearchRequest.prototype.toObject = function(opt_includeInstance) {
3740
+ return proto.game.CashBackSearchRequest.toObject(opt_includeInstance, this);
3741
+ };
3742
+
3743
+
3744
+ /**
3745
+ * Static version of the {@see toObject} method.
3746
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3747
+ * the JSPB instance for transitional soy proto support:
3748
+ * http://goto/soy-param-migration
3749
+ * @param {!proto.game.CashBackSearchRequest} msg The msg instance to transform.
3750
+ * @return {!Object}
3751
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3752
+ */
3753
+ proto.game.CashBackSearchRequest.toObject = function(includeInstance, msg) {
3754
+ var f, obj = {
3755
+ cashbackId: jspb.Message.getFieldWithDefault(msg, 1, 0),
3756
+ gameTitle: jspb.Message.getFieldWithDefault(msg, 2, ""),
3757
+ cashbackIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
3758
+ };
3759
+
3760
+ if (includeInstance) {
3761
+ obj.$jspbMessageInstance = msg;
3762
+ }
3763
+ return obj;
3764
+ };
3765
+ }
3766
+
3767
+
3768
+ /**
3769
+ * Deserializes binary data (in protobuf wire format).
3770
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3771
+ * @return {!proto.game.CashBackSearchRequest}
3772
+ */
3773
+ proto.game.CashBackSearchRequest.deserializeBinary = function(bytes) {
3774
+ var reader = new jspb.BinaryReader(bytes);
3775
+ var msg = new proto.game.CashBackSearchRequest;
3776
+ return proto.game.CashBackSearchRequest.deserializeBinaryFromReader(msg, reader);
3777
+ };
3778
+
3779
+
3780
+ /**
3781
+ * Deserializes binary data (in protobuf wire format) from the
3782
+ * given reader into the given message object.
3783
+ * @param {!proto.game.CashBackSearchRequest} msg The message object to deserialize into.
3784
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3785
+ * @return {!proto.game.CashBackSearchRequest}
3786
+ */
3787
+ proto.game.CashBackSearchRequest.deserializeBinaryFromReader = function(msg, reader) {
3788
+ while (reader.nextField()) {
3789
+ if (reader.isEndGroup()) {
3790
+ break;
3791
+ }
3792
+ var field = reader.getFieldNumber();
3793
+ switch (field) {
3794
+ case 1:
3795
+ var value = /** @type {number} */ (reader.readInt32());
3796
+ msg.setCashbackId(value);
3797
+ break;
3798
+ case 2:
3799
+ var value = /** @type {string} */ (reader.readString());
3800
+ msg.setGameTitle(value);
3801
+ break;
3802
+ case 3:
3803
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
3804
+ for (var i = 0; i < values.length; i++) {
3805
+ msg.addCashbackIds(values[i]);
3806
+ }
3807
+ break;
3808
+ default:
3809
+ reader.skipField();
3810
+ break;
3811
+ }
3812
+ }
3813
+ return msg;
3814
+ };
3815
+
3816
+
3817
+ /**
3818
+ * Serializes the message to binary data (in protobuf wire format).
3819
+ * @return {!Uint8Array}
3820
+ */
3821
+ proto.game.CashBackSearchRequest.prototype.serializeBinary = function() {
3822
+ var writer = new jspb.BinaryWriter();
3823
+ proto.game.CashBackSearchRequest.serializeBinaryToWriter(this, writer);
3824
+ return writer.getResultBuffer();
3825
+ };
3826
+
3827
+
3828
+ /**
3829
+ * Serializes the given message to binary data (in protobuf wire
3830
+ * format), writing to the given BinaryWriter.
3831
+ * @param {!proto.game.CashBackSearchRequest} message
3832
+ * @param {!jspb.BinaryWriter} writer
3833
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3834
+ */
3835
+ proto.game.CashBackSearchRequest.serializeBinaryToWriter = function(message, writer) {
3836
+ var f = undefined;
3837
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
3838
+ if (f != null) {
3839
+ writer.writeInt32(
3840
+ 1,
3841
+ f
3842
+ );
3843
+ }
3844
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
3845
+ if (f != null) {
3846
+ writer.writeString(
3847
+ 2,
3848
+ f
3849
+ );
3850
+ }
3851
+ f = message.getCashbackIdsList();
3852
+ if (f.length > 0) {
3853
+ writer.writePackedInt32(
3854
+ 3,
3855
+ f
3856
+ );
3857
+ }
3858
+ };
3859
+
3860
+
3861
+ /**
3862
+ * optional int32 cashback_id = 1;
3863
+ * @return {number}
3864
+ */
3865
+ proto.game.CashBackSearchRequest.prototype.getCashbackId = function() {
3866
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3867
+ };
3868
+
3869
+
3870
+ /**
3871
+ * @param {number} value
3872
+ * @return {!proto.game.CashBackSearchRequest} returns this
3873
+ */
3874
+ proto.game.CashBackSearchRequest.prototype.setCashbackId = function(value) {
3875
+ return jspb.Message.setField(this, 1, value);
3876
+ };
3877
+
3878
+
3879
+ /**
3880
+ * Clears the field making it undefined.
3881
+ * @return {!proto.game.CashBackSearchRequest} returns this
3882
+ */
3883
+ proto.game.CashBackSearchRequest.prototype.clearCashbackId = function() {
3884
+ return jspb.Message.setField(this, 1, undefined);
3885
+ };
3886
+
3887
+
3888
+ /**
3889
+ * Returns whether this field is set.
3890
+ * @return {boolean}
3891
+ */
3892
+ proto.game.CashBackSearchRequest.prototype.hasCashbackId = function() {
3893
+ return jspb.Message.getField(this, 1) != null;
3894
+ };
3895
+
3896
+
3897
+ /**
3898
+ * optional string game_title = 2;
3899
+ * @return {string}
3900
+ */
3901
+ proto.game.CashBackSearchRequest.prototype.getGameTitle = function() {
3902
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3903
+ };
3904
+
3905
+
3906
+ /**
3907
+ * @param {string} value
3908
+ * @return {!proto.game.CashBackSearchRequest} returns this
3909
+ */
3910
+ proto.game.CashBackSearchRequest.prototype.setGameTitle = function(value) {
3911
+ return jspb.Message.setField(this, 2, value);
3912
+ };
3913
+
3914
+
3915
+ /**
3916
+ * Clears the field making it undefined.
3917
+ * @return {!proto.game.CashBackSearchRequest} returns this
3918
+ */
3919
+ proto.game.CashBackSearchRequest.prototype.clearGameTitle = function() {
3920
+ return jspb.Message.setField(this, 2, undefined);
3921
+ };
3922
+
3923
+
3924
+ /**
3925
+ * Returns whether this field is set.
3926
+ * @return {boolean}
3927
+ */
3928
+ proto.game.CashBackSearchRequest.prototype.hasGameTitle = function() {
3929
+ return jspb.Message.getField(this, 2) != null;
3930
+ };
3931
+
3932
+
3933
+ /**
3934
+ * repeated int32 cashback_ids = 3;
3935
+ * @return {!Array<number>}
3936
+ */
3937
+ proto.game.CashBackSearchRequest.prototype.getCashbackIdsList = function() {
3938
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 3));
3939
+ };
3940
+
3941
+
3942
+ /**
3943
+ * @param {!Array<number>} value
3944
+ * @return {!proto.game.CashBackSearchRequest} returns this
3945
+ */
3946
+ proto.game.CashBackSearchRequest.prototype.setCashbackIdsList = function(value) {
3947
+ return jspb.Message.setField(this, 3, value || []);
3948
+ };
3949
+
3950
+
3951
+ /**
3952
+ * @param {number} value
3953
+ * @param {number=} opt_index
3954
+ * @return {!proto.game.CashBackSearchRequest} returns this
3955
+ */
3956
+ proto.game.CashBackSearchRequest.prototype.addCashbackIds = function(value, opt_index) {
3957
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
3958
+ };
3959
+
3960
+
3961
+ /**
3962
+ * Clears the list making it empty but non-null.
3963
+ * @return {!proto.game.CashBackSearchRequest} returns this
3964
+ */
3965
+ proto.game.CashBackSearchRequest.prototype.clearCashbackIdsList = function() {
3966
+ return this.setCashbackIdsList([]);
3967
+ };
3968
+
3969
+
3970
+
3644
3971
 
3645
3972
 
3646
3973
  if (jspb.Message.GENERATE_TO_OBJECT) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.0.291",
3
+ "version": "1.0.292",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {