protobuf-platform 1.2.90 → 1.2.92

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/bonus/bonus.proto CHANGED
@@ -114,8 +114,8 @@ message BonusItemRequest {
114
114
  optional int32 type_id = 7;
115
115
  optional int32 wager_x = 8;
116
116
  optional int32 payout_x = 9;
117
- optional bool is_real_wagering = 10;
118
- optional bool is_bonus_wagering = 11;
117
+ optional int32 is_real_wagering = 10;
118
+ optional int32 is_bonus_wagering = 11;
119
119
  optional int32 repeat_count = 12;
120
120
  optional int32 wager_games_list_id = 13;
121
121
  optional string started_at = 14;
package/bonus/bonus_pb.js CHANGED
@@ -4235,8 +4235,8 @@ proto.bonus.BonusItemRequest.toObject = function(includeInstance, msg) {
4235
4235
  typeId: jspb.Message.getFieldWithDefault(msg, 7, 0),
4236
4236
  wagerX: jspb.Message.getFieldWithDefault(msg, 8, 0),
4237
4237
  payoutX: jspb.Message.getFieldWithDefault(msg, 9, 0),
4238
- isRealWagering: jspb.Message.getBooleanFieldWithDefault(msg, 10, false),
4239
- isBonusWagering: jspb.Message.getBooleanFieldWithDefault(msg, 11, false),
4238
+ isRealWagering: jspb.Message.getFieldWithDefault(msg, 10, 0),
4239
+ isBonusWagering: jspb.Message.getFieldWithDefault(msg, 11, 0),
4240
4240
  repeatCount: jspb.Message.getFieldWithDefault(msg, 12, 0),
4241
4241
  wagerGamesListId: jspb.Message.getFieldWithDefault(msg, 13, 0),
4242
4242
  startedAt: jspb.Message.getFieldWithDefault(msg, 14, ""),
@@ -4319,11 +4319,11 @@ proto.bonus.BonusItemRequest.deserializeBinaryFromReader = function(msg, reader)
4319
4319
  msg.setPayoutX(value);
4320
4320
  break;
4321
4321
  case 10:
4322
- var value = /** @type {boolean} */ (reader.readBool());
4322
+ var value = /** @type {number} */ (reader.readInt32());
4323
4323
  msg.setIsRealWagering(value);
4324
4324
  break;
4325
4325
  case 11:
4326
- var value = /** @type {boolean} */ (reader.readBool());
4326
+ var value = /** @type {number} */ (reader.readInt32());
4327
4327
  msg.setIsBonusWagering(value);
4328
4328
  break;
4329
4329
  case 12:
@@ -4454,16 +4454,16 @@ proto.bonus.BonusItemRequest.serializeBinaryToWriter = function(message, writer)
4454
4454
  f
4455
4455
  );
4456
4456
  }
4457
- f = /** @type {boolean} */ (jspb.Message.getField(message, 10));
4457
+ f = /** @type {number} */ (jspb.Message.getField(message, 10));
4458
4458
  if (f != null) {
4459
- writer.writeBool(
4459
+ writer.writeInt32(
4460
4460
  10,
4461
4461
  f
4462
4462
  );
4463
4463
  }
4464
- f = /** @type {boolean} */ (jspb.Message.getField(message, 11));
4464
+ f = /** @type {number} */ (jspb.Message.getField(message, 11));
4465
4465
  if (f != null) {
4466
- writer.writeBool(
4466
+ writer.writeInt32(
4467
4467
  11,
4468
4468
  f
4469
4469
  );
@@ -4859,16 +4859,16 @@ proto.bonus.BonusItemRequest.prototype.hasPayoutX = function() {
4859
4859
 
4860
4860
 
4861
4861
  /**
4862
- * optional bool is_real_wagering = 10;
4863
- * @return {boolean}
4862
+ * optional int32 is_real_wagering = 10;
4863
+ * @return {number}
4864
4864
  */
4865
4865
  proto.bonus.BonusItemRequest.prototype.getIsRealWagering = function() {
4866
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false));
4866
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
4867
4867
  };
4868
4868
 
4869
4869
 
4870
4870
  /**
4871
- * @param {boolean} value
4871
+ * @param {number} value
4872
4872
  * @return {!proto.bonus.BonusItemRequest} returns this
4873
4873
  */
4874
4874
  proto.bonus.BonusItemRequest.prototype.setIsRealWagering = function(value) {
@@ -4895,16 +4895,16 @@ proto.bonus.BonusItemRequest.prototype.hasIsRealWagering = function() {
4895
4895
 
4896
4896
 
4897
4897
  /**
4898
- * optional bool is_bonus_wagering = 11;
4899
- * @return {boolean}
4898
+ * optional int32 is_bonus_wagering = 11;
4899
+ * @return {number}
4900
4900
  */
4901
4901
  proto.bonus.BonusItemRequest.prototype.getIsBonusWagering = function() {
4902
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 11, false));
4902
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0));
4903
4903
  };
4904
4904
 
4905
4905
 
4906
4906
  /**
4907
- * @param {boolean} value
4907
+ * @param {number} value
4908
4908
  * @return {!proto.bonus.BonusItemRequest} returns this
4909
4909
  */
4910
4910
  proto.bonus.BonusItemRequest.prototype.setIsBonusWagering = function(value) {
@@ -29,6 +29,7 @@ service Config {
29
29
  rpc updateMirror(ModifyMirrorRequest) returns (MirrorResponse);
30
30
  rpc getMirrorsList(PaginationRequest) returns (MirrorItemsResponse);
31
31
  rpc deleteSingleMirror(GetZoneRequest) returns (MirrorStatusResponse);
32
+ rpc syncActivatedMirrors(GetZoneRequest) returns (ActivatedMirrorsResponse);
32
33
  }
33
34
 
34
35
  message PingRequest { string ping = 1; }
@@ -191,4 +192,7 @@ message ModifyMirrorRequest {
191
192
  optional string priority = 3;
192
193
  optional string status = 4;
193
194
  optional int32 is_active = 5;
195
+ }
196
+ message ActivatedMirrorsResponse {
197
+ repeated string domains = 1;
194
198
  }
@@ -4,6 +4,17 @@
4
4
  var grpc = require('@grpc/grpc-js');
5
5
  var config_pb = require('./config_pb.js');
6
6
 
7
+ function serialize_config_ActivatedMirrorsResponse(arg) {
8
+ if (!(arg instanceof config_pb.ActivatedMirrorsResponse)) {
9
+ throw new Error('Expected argument of type config.ActivatedMirrorsResponse');
10
+ }
11
+ return Buffer.from(arg.serializeBinary());
12
+ }
13
+
14
+ function deserialize_config_ActivatedMirrorsResponse(buffer_arg) {
15
+ return config_pb.ActivatedMirrorsResponse.deserializeBinary(new Uint8Array(buffer_arg));
16
+ }
17
+
7
18
  function serialize_config_CommonCountriesRequest(arg) {
8
19
  if (!(arg instanceof config_pb.CommonCountriesRequest)) {
9
20
  throw new Error('Expected argument of type config.CommonCountriesRequest');
@@ -520,6 +531,17 @@ getZonesList: {
520
531
  responseSerialize: serialize_config_MirrorStatusResponse,
521
532
  responseDeserialize: deserialize_config_MirrorStatusResponse,
522
533
  },
534
+ syncActivatedMirrors: {
535
+ path: '/config.Config/syncActivatedMirrors',
536
+ requestStream: false,
537
+ responseStream: false,
538
+ requestType: config_pb.GetZoneRequest,
539
+ responseType: config_pb.ActivatedMirrorsResponse,
540
+ requestSerialize: serialize_config_GetZoneRequest,
541
+ requestDeserialize: deserialize_config_GetZoneRequest,
542
+ responseSerialize: serialize_config_ActivatedMirrorsResponse,
543
+ responseDeserialize: deserialize_config_ActivatedMirrorsResponse,
544
+ },
523
545
  };
524
546
 
525
547
  exports.ConfigClient = grpc.makeGenericClientConstructor(ConfigService, 'Config');
@@ -21,6 +21,7 @@ var global = (function() {
21
21
  return Function('return this')();
22
22
  }.call(null));
23
23
 
24
+ goog.exportSymbol('proto.config.ActivatedMirrorsResponse', null, global);
24
25
  goog.exportSymbol('proto.config.CommonCountriesRequest', null, global);
25
26
  goog.exportSymbol('proto.config.CommonCountriesResponse', null, global);
26
27
  goog.exportSymbol('proto.config.ConfigDataResponse', null, global);
@@ -725,6 +726,27 @@ if (goog.DEBUG && !COMPILED) {
725
726
  */
726
727
  proto.config.ModifyMirrorRequest.displayName = 'proto.config.ModifyMirrorRequest';
727
728
  }
729
+ /**
730
+ * Generated by JsPbCodeGenerator.
731
+ * @param {Array=} opt_data Optional initial data array, typically from a
732
+ * server response, or constructed directly in Javascript. The array is used
733
+ * in place and becomes part of the constructed object. It is not cloned.
734
+ * If no data is provided, the constructed object will be empty, but still
735
+ * valid.
736
+ * @extends {jspb.Message}
737
+ * @constructor
738
+ */
739
+ proto.config.ActivatedMirrorsResponse = function(opt_data) {
740
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.config.ActivatedMirrorsResponse.repeatedFields_, null);
741
+ };
742
+ goog.inherits(proto.config.ActivatedMirrorsResponse, jspb.Message);
743
+ if (goog.DEBUG && !COMPILED) {
744
+ /**
745
+ * @public
746
+ * @override
747
+ */
748
+ proto.config.ActivatedMirrorsResponse.displayName = 'proto.config.ActivatedMirrorsResponse';
749
+ }
728
750
 
729
751
 
730
752
 
@@ -7793,4 +7815,160 @@ proto.config.ModifyMirrorRequest.prototype.hasIsActive = function() {
7793
7815
  };
7794
7816
 
7795
7817
 
7818
+
7819
+ /**
7820
+ * List of repeated fields within this message type.
7821
+ * @private {!Array<number>}
7822
+ * @const
7823
+ */
7824
+ proto.config.ActivatedMirrorsResponse.repeatedFields_ = [1];
7825
+
7826
+
7827
+
7828
+ if (jspb.Message.GENERATE_TO_OBJECT) {
7829
+ /**
7830
+ * Creates an object representation of this proto.
7831
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
7832
+ * Optional fields that are not set will be set to undefined.
7833
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7834
+ * For the list of reserved names please see:
7835
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
7836
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
7837
+ * JSPB instance for transitional soy proto support:
7838
+ * http://goto/soy-param-migration
7839
+ * @return {!Object}
7840
+ */
7841
+ proto.config.ActivatedMirrorsResponse.prototype.toObject = function(opt_includeInstance) {
7842
+ return proto.config.ActivatedMirrorsResponse.toObject(opt_includeInstance, this);
7843
+ };
7844
+
7845
+
7846
+ /**
7847
+ * Static version of the {@see toObject} method.
7848
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7849
+ * the JSPB instance for transitional soy proto support:
7850
+ * http://goto/soy-param-migration
7851
+ * @param {!proto.config.ActivatedMirrorsResponse} msg The msg instance to transform.
7852
+ * @return {!Object}
7853
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7854
+ */
7855
+ proto.config.ActivatedMirrorsResponse.toObject = function(includeInstance, msg) {
7856
+ var f, obj = {
7857
+ domainsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
7858
+ };
7859
+
7860
+ if (includeInstance) {
7861
+ obj.$jspbMessageInstance = msg;
7862
+ }
7863
+ return obj;
7864
+ };
7865
+ }
7866
+
7867
+
7868
+ /**
7869
+ * Deserializes binary data (in protobuf wire format).
7870
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
7871
+ * @return {!proto.config.ActivatedMirrorsResponse}
7872
+ */
7873
+ proto.config.ActivatedMirrorsResponse.deserializeBinary = function(bytes) {
7874
+ var reader = new jspb.BinaryReader(bytes);
7875
+ var msg = new proto.config.ActivatedMirrorsResponse;
7876
+ return proto.config.ActivatedMirrorsResponse.deserializeBinaryFromReader(msg, reader);
7877
+ };
7878
+
7879
+
7880
+ /**
7881
+ * Deserializes binary data (in protobuf wire format) from the
7882
+ * given reader into the given message object.
7883
+ * @param {!proto.config.ActivatedMirrorsResponse} msg The message object to deserialize into.
7884
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7885
+ * @return {!proto.config.ActivatedMirrorsResponse}
7886
+ */
7887
+ proto.config.ActivatedMirrorsResponse.deserializeBinaryFromReader = function(msg, reader) {
7888
+ while (reader.nextField()) {
7889
+ if (reader.isEndGroup()) {
7890
+ break;
7891
+ }
7892
+ var field = reader.getFieldNumber();
7893
+ switch (field) {
7894
+ case 1:
7895
+ var value = /** @type {string} */ (reader.readString());
7896
+ msg.addDomains(value);
7897
+ break;
7898
+ default:
7899
+ reader.skipField();
7900
+ break;
7901
+ }
7902
+ }
7903
+ return msg;
7904
+ };
7905
+
7906
+
7907
+ /**
7908
+ * Serializes the message to binary data (in protobuf wire format).
7909
+ * @return {!Uint8Array}
7910
+ */
7911
+ proto.config.ActivatedMirrorsResponse.prototype.serializeBinary = function() {
7912
+ var writer = new jspb.BinaryWriter();
7913
+ proto.config.ActivatedMirrorsResponse.serializeBinaryToWriter(this, writer);
7914
+ return writer.getResultBuffer();
7915
+ };
7916
+
7917
+
7918
+ /**
7919
+ * Serializes the given message to binary data (in protobuf wire
7920
+ * format), writing to the given BinaryWriter.
7921
+ * @param {!proto.config.ActivatedMirrorsResponse} message
7922
+ * @param {!jspb.BinaryWriter} writer
7923
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7924
+ */
7925
+ proto.config.ActivatedMirrorsResponse.serializeBinaryToWriter = function(message, writer) {
7926
+ var f = undefined;
7927
+ f = message.getDomainsList();
7928
+ if (f.length > 0) {
7929
+ writer.writeRepeatedString(
7930
+ 1,
7931
+ f
7932
+ );
7933
+ }
7934
+ };
7935
+
7936
+
7937
+ /**
7938
+ * repeated string domains = 1;
7939
+ * @return {!Array<string>}
7940
+ */
7941
+ proto.config.ActivatedMirrorsResponse.prototype.getDomainsList = function() {
7942
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
7943
+ };
7944
+
7945
+
7946
+ /**
7947
+ * @param {!Array<string>} value
7948
+ * @return {!proto.config.ActivatedMirrorsResponse} returns this
7949
+ */
7950
+ proto.config.ActivatedMirrorsResponse.prototype.setDomainsList = function(value) {
7951
+ return jspb.Message.setField(this, 1, value || []);
7952
+ };
7953
+
7954
+
7955
+ /**
7956
+ * @param {string} value
7957
+ * @param {number=} opt_index
7958
+ * @return {!proto.config.ActivatedMirrorsResponse} returns this
7959
+ */
7960
+ proto.config.ActivatedMirrorsResponse.prototype.addDomains = function(value, opt_index) {
7961
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
7962
+ };
7963
+
7964
+
7965
+ /**
7966
+ * Clears the list making it empty but non-null.
7967
+ * @return {!proto.config.ActivatedMirrorsResponse} returns this
7968
+ */
7969
+ proto.config.ActivatedMirrorsResponse.prototype.clearDomainsList = function() {
7970
+ return this.setDomainsList([]);
7971
+ };
7972
+
7973
+
7796
7974
  goog.object.extend(exports, proto.config);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.90",
3
+ "version": "1.2.92",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {