protobuf-platform 1.2.687 → 1.2.689

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
@@ -67,6 +67,7 @@ service Game {
67
67
  rpc replaceProviderCutoverPlacements(ProviderCutoverRequest) returns (ProviderCutoverAcceptedResponse);
68
68
  rpc startProviderDemoAvailabilityCheck(ProviderDemoAvailabilityCheckRequest) returns (ProviderDemoAvailabilityCheckAcceptedResponse);
69
69
  rpc setProviderCurrencyManagerEnabled(SetProviderCurrencyManagerEnabledRequest) returns (ProviderCurrencyCapability);
70
+ rpc updateProviderCurrency(UpdateProviderCurrencyRequest) returns (ProviderCurrencyCapability);
70
71
  //Games
71
72
  rpc parseGames(ParseGamesRequest) returns (ParseGamesResponse);
72
73
  rpc readSingleGame(GetGameRequest) returns (GameResponse);
@@ -495,12 +496,21 @@ message ProviderCurrencyCapability {
495
496
  bool manager_enabled = 3;
496
497
  bool effective_active = 4;
497
498
  string effective_status = 5;
499
+ bool is_active = 6;
500
+ bool is_priority = 7;
498
501
  }
499
502
  message SetProviderCurrencyManagerEnabledRequest {
500
503
  int32 provider_id = 1;
501
504
  string currency = 2;
502
505
  bool manager_enabled = 3;
503
506
  }
507
+ message UpdateProviderCurrencyRequest {
508
+ int32 provider_id = 1;
509
+ string currency = 2;
510
+ optional bool is_active = 3;
511
+ optional bool manager_enabled = 4;
512
+ optional bool is_priority = 5;
513
+ }
504
514
  //Provider CRUD | Requests
505
515
  message ProviderRequest {
506
516
  oneof request {
@@ -1555,6 +1555,17 @@ function deserialize_game_TournamentIdsRequest(buffer_arg) {
1555
1555
  return game_pb.TournamentIdsRequest.deserializeBinary(new Uint8Array(buffer_arg));
1556
1556
  }
1557
1557
 
1558
+ function serialize_game_UpdateProviderCurrencyRequest(arg) {
1559
+ if (!(arg instanceof game_pb.UpdateProviderCurrencyRequest)) {
1560
+ throw new Error('Expected argument of type game.UpdateProviderCurrencyRequest');
1561
+ }
1562
+ return Buffer.from(arg.serializeBinary());
1563
+ }
1564
+
1565
+ function deserialize_game_UpdateProviderCurrencyRequest(buffer_arg) {
1566
+ return game_pb.UpdateProviderCurrencyRequest.deserializeBinary(new Uint8Array(buffer_arg));
1567
+ }
1568
+
1558
1569
  function serialize_game_VendorActionRequest(arg) {
1559
1570
  if (!(arg instanceof game_pb.VendorActionRequest)) {
1560
1571
  throw new Error('Expected argument of type game.VendorActionRequest');
@@ -2278,6 +2289,17 @@ createSingleProvider: {
2278
2289
  responseSerialize: serialize_game_ProviderCurrencyCapability,
2279
2290
  responseDeserialize: deserialize_game_ProviderCurrencyCapability,
2280
2291
  },
2292
+ updateProviderCurrency: {
2293
+ path: '/game.Game/updateProviderCurrency',
2294
+ requestStream: false,
2295
+ responseStream: false,
2296
+ requestType: game_pb.UpdateProviderCurrencyRequest,
2297
+ responseType: game_pb.ProviderCurrencyCapability,
2298
+ requestSerialize: serialize_game_UpdateProviderCurrencyRequest,
2299
+ requestDeserialize: deserialize_game_UpdateProviderCurrencyRequest,
2300
+ responseSerialize: serialize_game_ProviderCurrencyCapability,
2301
+ responseDeserialize: deserialize_game_ProviderCurrencyCapability,
2302
+ },
2281
2303
  // Games
2282
2304
  parseGames: {
2283
2305
  path: '/game.Game/parseGames',
package/game/game_pb.js CHANGED
@@ -224,6 +224,7 @@ goog.exportSymbol('proto.game.TournamentGamesRequest', null, global);
224
224
  goog.exportSymbol('proto.game.TournamentGamesSearchRequest', null, global);
225
225
  goog.exportSymbol('proto.game.TournamentIdsRequest', null, global);
226
226
  goog.exportSymbol('proto.game.TournamentSearchRequest', null, global);
227
+ goog.exportSymbol('proto.game.UpdateProviderCurrencyRequest', null, global);
227
228
  goog.exportSymbol('proto.game.UserBalanceGameSessionRequest', null, global);
228
229
  goog.exportSymbol('proto.game.VendorActionRequest', null, global);
229
230
  goog.exportSymbol('proto.game.VendorActionResponse', null, global);
@@ -1263,6 +1264,27 @@ if (goog.DEBUG && !COMPILED) {
1263
1264
  */
1264
1265
  proto.game.SetProviderCurrencyManagerEnabledRequest.displayName = 'proto.game.SetProviderCurrencyManagerEnabledRequest';
1265
1266
  }
1267
+ /**
1268
+ * Generated by JsPbCodeGenerator.
1269
+ * @param {Array=} opt_data Optional initial data array, typically from a
1270
+ * server response, or constructed directly in Javascript. The array is used
1271
+ * in place and becomes part of the constructed object. It is not cloned.
1272
+ * If no data is provided, the constructed object will be empty, but still
1273
+ * valid.
1274
+ * @extends {jspb.Message}
1275
+ * @constructor
1276
+ */
1277
+ proto.game.UpdateProviderCurrencyRequest = function(opt_data) {
1278
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1279
+ };
1280
+ goog.inherits(proto.game.UpdateProviderCurrencyRequest, jspb.Message);
1281
+ if (goog.DEBUG && !COMPILED) {
1282
+ /**
1283
+ * @public
1284
+ * @override
1285
+ */
1286
+ proto.game.UpdateProviderCurrencyRequest.displayName = 'proto.game.UpdateProviderCurrencyRequest';
1287
+ }
1266
1288
  /**
1267
1289
  * Generated by JsPbCodeGenerator.
1268
1290
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -19400,7 +19422,9 @@ proto.game.ProviderCurrencyCapability.toObject = function(includeInstance, msg)
19400
19422
  providerSupported: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
19401
19423
  managerEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
19402
19424
  effectiveActive: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
19403
- effectiveStatus: jspb.Message.getFieldWithDefault(msg, 5, "")
19425
+ effectiveStatus: jspb.Message.getFieldWithDefault(msg, 5, ""),
19426
+ isActive: jspb.Message.getBooleanFieldWithDefault(msg, 6, false),
19427
+ isPriority: jspb.Message.getBooleanFieldWithDefault(msg, 7, false)
19404
19428
  };
19405
19429
 
19406
19430
  if (includeInstance) {
@@ -19457,6 +19481,14 @@ proto.game.ProviderCurrencyCapability.deserializeBinaryFromReader = function(msg
19457
19481
  var value = /** @type {string} */ (reader.readString());
19458
19482
  msg.setEffectiveStatus(value);
19459
19483
  break;
19484
+ case 6:
19485
+ var value = /** @type {boolean} */ (reader.readBool());
19486
+ msg.setIsActive(value);
19487
+ break;
19488
+ case 7:
19489
+ var value = /** @type {boolean} */ (reader.readBool());
19490
+ msg.setIsPriority(value);
19491
+ break;
19460
19492
  default:
19461
19493
  reader.skipField();
19462
19494
  break;
@@ -19521,6 +19553,20 @@ proto.game.ProviderCurrencyCapability.serializeBinaryToWriter = function(message
19521
19553
  f
19522
19554
  );
19523
19555
  }
19556
+ f = message.getIsActive();
19557
+ if (f) {
19558
+ writer.writeBool(
19559
+ 6,
19560
+ f
19561
+ );
19562
+ }
19563
+ f = message.getIsPriority();
19564
+ if (f) {
19565
+ writer.writeBool(
19566
+ 7,
19567
+ f
19568
+ );
19569
+ }
19524
19570
  };
19525
19571
 
19526
19572
 
@@ -19614,6 +19660,42 @@ proto.game.ProviderCurrencyCapability.prototype.setEffectiveStatus = function(va
19614
19660
  };
19615
19661
 
19616
19662
 
19663
+ /**
19664
+ * optional bool is_active = 6;
19665
+ * @return {boolean}
19666
+ */
19667
+ proto.game.ProviderCurrencyCapability.prototype.getIsActive = function() {
19668
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
19669
+ };
19670
+
19671
+
19672
+ /**
19673
+ * @param {boolean} value
19674
+ * @return {!proto.game.ProviderCurrencyCapability} returns this
19675
+ */
19676
+ proto.game.ProviderCurrencyCapability.prototype.setIsActive = function(value) {
19677
+ return jspb.Message.setProto3BooleanField(this, 6, value);
19678
+ };
19679
+
19680
+
19681
+ /**
19682
+ * optional bool is_priority = 7;
19683
+ * @return {boolean}
19684
+ */
19685
+ proto.game.ProviderCurrencyCapability.prototype.getIsPriority = function() {
19686
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false));
19687
+ };
19688
+
19689
+
19690
+ /**
19691
+ * @param {boolean} value
19692
+ * @return {!proto.game.ProviderCurrencyCapability} returns this
19693
+ */
19694
+ proto.game.ProviderCurrencyCapability.prototype.setIsPriority = function(value) {
19695
+ return jspb.Message.setProto3BooleanField(this, 7, value);
19696
+ };
19697
+
19698
+
19617
19699
 
19618
19700
 
19619
19701
 
@@ -19805,6 +19887,310 @@ proto.game.SetProviderCurrencyManagerEnabledRequest.prototype.setManagerEnabled
19805
19887
 
19806
19888
 
19807
19889
 
19890
+
19891
+
19892
+ if (jspb.Message.GENERATE_TO_OBJECT) {
19893
+ /**
19894
+ * Creates an object representation of this proto.
19895
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
19896
+ * Optional fields that are not set will be set to undefined.
19897
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
19898
+ * For the list of reserved names please see:
19899
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
19900
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
19901
+ * JSPB instance for transitional soy proto support:
19902
+ * http://goto/soy-param-migration
19903
+ * @return {!Object}
19904
+ */
19905
+ proto.game.UpdateProviderCurrencyRequest.prototype.toObject = function(opt_includeInstance) {
19906
+ return proto.game.UpdateProviderCurrencyRequest.toObject(opt_includeInstance, this);
19907
+ };
19908
+
19909
+
19910
+ /**
19911
+ * Static version of the {@see toObject} method.
19912
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
19913
+ * the JSPB instance for transitional soy proto support:
19914
+ * http://goto/soy-param-migration
19915
+ * @param {!proto.game.UpdateProviderCurrencyRequest} msg The msg instance to transform.
19916
+ * @return {!Object}
19917
+ * @suppress {unusedLocalVariables} f is only used for nested messages
19918
+ */
19919
+ proto.game.UpdateProviderCurrencyRequest.toObject = function(includeInstance, msg) {
19920
+ var f, obj = {
19921
+ providerId: jspb.Message.getFieldWithDefault(msg, 1, 0),
19922
+ currency: jspb.Message.getFieldWithDefault(msg, 2, ""),
19923
+ isActive: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
19924
+ managerEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
19925
+ isPriority: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
19926
+ };
19927
+
19928
+ if (includeInstance) {
19929
+ obj.$jspbMessageInstance = msg;
19930
+ }
19931
+ return obj;
19932
+ };
19933
+ }
19934
+
19935
+
19936
+ /**
19937
+ * Deserializes binary data (in protobuf wire format).
19938
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
19939
+ * @return {!proto.game.UpdateProviderCurrencyRequest}
19940
+ */
19941
+ proto.game.UpdateProviderCurrencyRequest.deserializeBinary = function(bytes) {
19942
+ var reader = new jspb.BinaryReader(bytes);
19943
+ var msg = new proto.game.UpdateProviderCurrencyRequest;
19944
+ return proto.game.UpdateProviderCurrencyRequest.deserializeBinaryFromReader(msg, reader);
19945
+ };
19946
+
19947
+
19948
+ /**
19949
+ * Deserializes binary data (in protobuf wire format) from the
19950
+ * given reader into the given message object.
19951
+ * @param {!proto.game.UpdateProviderCurrencyRequest} msg The message object to deserialize into.
19952
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
19953
+ * @return {!proto.game.UpdateProviderCurrencyRequest}
19954
+ */
19955
+ proto.game.UpdateProviderCurrencyRequest.deserializeBinaryFromReader = function(msg, reader) {
19956
+ while (reader.nextField()) {
19957
+ if (reader.isEndGroup()) {
19958
+ break;
19959
+ }
19960
+ var field = reader.getFieldNumber();
19961
+ switch (field) {
19962
+ case 1:
19963
+ var value = /** @type {number} */ (reader.readInt32());
19964
+ msg.setProviderId(value);
19965
+ break;
19966
+ case 2:
19967
+ var value = /** @type {string} */ (reader.readString());
19968
+ msg.setCurrency(value);
19969
+ break;
19970
+ case 3:
19971
+ var value = /** @type {boolean} */ (reader.readBool());
19972
+ msg.setIsActive(value);
19973
+ break;
19974
+ case 4:
19975
+ var value = /** @type {boolean} */ (reader.readBool());
19976
+ msg.setManagerEnabled(value);
19977
+ break;
19978
+ case 5:
19979
+ var value = /** @type {boolean} */ (reader.readBool());
19980
+ msg.setIsPriority(value);
19981
+ break;
19982
+ default:
19983
+ reader.skipField();
19984
+ break;
19985
+ }
19986
+ }
19987
+ return msg;
19988
+ };
19989
+
19990
+
19991
+ /**
19992
+ * Serializes the message to binary data (in protobuf wire format).
19993
+ * @return {!Uint8Array}
19994
+ */
19995
+ proto.game.UpdateProviderCurrencyRequest.prototype.serializeBinary = function() {
19996
+ var writer = new jspb.BinaryWriter();
19997
+ proto.game.UpdateProviderCurrencyRequest.serializeBinaryToWriter(this, writer);
19998
+ return writer.getResultBuffer();
19999
+ };
20000
+
20001
+
20002
+ /**
20003
+ * Serializes the given message to binary data (in protobuf wire
20004
+ * format), writing to the given BinaryWriter.
20005
+ * @param {!proto.game.UpdateProviderCurrencyRequest} message
20006
+ * @param {!jspb.BinaryWriter} writer
20007
+ * @suppress {unusedLocalVariables} f is only used for nested messages
20008
+ */
20009
+ proto.game.UpdateProviderCurrencyRequest.serializeBinaryToWriter = function(message, writer) {
20010
+ var f = undefined;
20011
+ f = message.getProviderId();
20012
+ if (f !== 0) {
20013
+ writer.writeInt32(
20014
+ 1,
20015
+ f
20016
+ );
20017
+ }
20018
+ f = message.getCurrency();
20019
+ if (f.length > 0) {
20020
+ writer.writeString(
20021
+ 2,
20022
+ f
20023
+ );
20024
+ }
20025
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 3));
20026
+ if (f != null) {
20027
+ writer.writeBool(
20028
+ 3,
20029
+ f
20030
+ );
20031
+ }
20032
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 4));
20033
+ if (f != null) {
20034
+ writer.writeBool(
20035
+ 4,
20036
+ f
20037
+ );
20038
+ }
20039
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 5));
20040
+ if (f != null) {
20041
+ writer.writeBool(
20042
+ 5,
20043
+ f
20044
+ );
20045
+ }
20046
+ };
20047
+
20048
+
20049
+ /**
20050
+ * optional int32 provider_id = 1;
20051
+ * @return {number}
20052
+ */
20053
+ proto.game.UpdateProviderCurrencyRequest.prototype.getProviderId = function() {
20054
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
20055
+ };
20056
+
20057
+
20058
+ /**
20059
+ * @param {number} value
20060
+ * @return {!proto.game.UpdateProviderCurrencyRequest} returns this
20061
+ */
20062
+ proto.game.UpdateProviderCurrencyRequest.prototype.setProviderId = function(value) {
20063
+ return jspb.Message.setProto3IntField(this, 1, value);
20064
+ };
20065
+
20066
+
20067
+ /**
20068
+ * optional string currency = 2;
20069
+ * @return {string}
20070
+ */
20071
+ proto.game.UpdateProviderCurrencyRequest.prototype.getCurrency = function() {
20072
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
20073
+ };
20074
+
20075
+
20076
+ /**
20077
+ * @param {string} value
20078
+ * @return {!proto.game.UpdateProviderCurrencyRequest} returns this
20079
+ */
20080
+ proto.game.UpdateProviderCurrencyRequest.prototype.setCurrency = function(value) {
20081
+ return jspb.Message.setProto3StringField(this, 2, value);
20082
+ };
20083
+
20084
+
20085
+ /**
20086
+ * optional bool is_active = 3;
20087
+ * @return {boolean}
20088
+ */
20089
+ proto.game.UpdateProviderCurrencyRequest.prototype.getIsActive = function() {
20090
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
20091
+ };
20092
+
20093
+
20094
+ /**
20095
+ * @param {boolean} value
20096
+ * @return {!proto.game.UpdateProviderCurrencyRequest} returns this
20097
+ */
20098
+ proto.game.UpdateProviderCurrencyRequest.prototype.setIsActive = function(value) {
20099
+ return jspb.Message.setField(this, 3, value);
20100
+ };
20101
+
20102
+
20103
+ /**
20104
+ * Clears the field making it undefined.
20105
+ * @return {!proto.game.UpdateProviderCurrencyRequest} returns this
20106
+ */
20107
+ proto.game.UpdateProviderCurrencyRequest.prototype.clearIsActive = function() {
20108
+ return jspb.Message.setField(this, 3, undefined);
20109
+ };
20110
+
20111
+
20112
+ /**
20113
+ * Returns whether this field is set.
20114
+ * @return {boolean}
20115
+ */
20116
+ proto.game.UpdateProviderCurrencyRequest.prototype.hasIsActive = function() {
20117
+ return jspb.Message.getField(this, 3) != null;
20118
+ };
20119
+
20120
+
20121
+ /**
20122
+ * optional bool manager_enabled = 4;
20123
+ * @return {boolean}
20124
+ */
20125
+ proto.game.UpdateProviderCurrencyRequest.prototype.getManagerEnabled = function() {
20126
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
20127
+ };
20128
+
20129
+
20130
+ /**
20131
+ * @param {boolean} value
20132
+ * @return {!proto.game.UpdateProviderCurrencyRequest} returns this
20133
+ */
20134
+ proto.game.UpdateProviderCurrencyRequest.prototype.setManagerEnabled = function(value) {
20135
+ return jspb.Message.setField(this, 4, value);
20136
+ };
20137
+
20138
+
20139
+ /**
20140
+ * Clears the field making it undefined.
20141
+ * @return {!proto.game.UpdateProviderCurrencyRequest} returns this
20142
+ */
20143
+ proto.game.UpdateProviderCurrencyRequest.prototype.clearManagerEnabled = function() {
20144
+ return jspb.Message.setField(this, 4, undefined);
20145
+ };
20146
+
20147
+
20148
+ /**
20149
+ * Returns whether this field is set.
20150
+ * @return {boolean}
20151
+ */
20152
+ proto.game.UpdateProviderCurrencyRequest.prototype.hasManagerEnabled = function() {
20153
+ return jspb.Message.getField(this, 4) != null;
20154
+ };
20155
+
20156
+
20157
+ /**
20158
+ * optional bool is_priority = 5;
20159
+ * @return {boolean}
20160
+ */
20161
+ proto.game.UpdateProviderCurrencyRequest.prototype.getIsPriority = function() {
20162
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
20163
+ };
20164
+
20165
+
20166
+ /**
20167
+ * @param {boolean} value
20168
+ * @return {!proto.game.UpdateProviderCurrencyRequest} returns this
20169
+ */
20170
+ proto.game.UpdateProviderCurrencyRequest.prototype.setIsPriority = function(value) {
20171
+ return jspb.Message.setField(this, 5, value);
20172
+ };
20173
+
20174
+
20175
+ /**
20176
+ * Clears the field making it undefined.
20177
+ * @return {!proto.game.UpdateProviderCurrencyRequest} returns this
20178
+ */
20179
+ proto.game.UpdateProviderCurrencyRequest.prototype.clearIsPriority = function() {
20180
+ return jspb.Message.setField(this, 5, undefined);
20181
+ };
20182
+
20183
+
20184
+ /**
20185
+ * Returns whether this field is set.
20186
+ * @return {boolean}
20187
+ */
20188
+ proto.game.UpdateProviderCurrencyRequest.prototype.hasIsPriority = function() {
20189
+ return jspb.Message.getField(this, 5) != null;
20190
+ };
20191
+
20192
+
20193
+
19808
20194
  /**
19809
20195
  * Oneof group definitions for this message. Each group defines the field
19810
20196
  * numbers belonging to that group. When of these fields' value is set, all
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.687",
3
+ "version": "1.2.689",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -1159,6 +1159,14 @@ message CalculatedRestrictionLimit {
1159
1159
  message ReadRiskPermissionMatrixRequest {
1160
1160
  string risk_level = 1;
1161
1161
  }
1162
+ // Platform-defined optional conditions, ANDed with each existing permission flag.
1163
+ // An absent configuration on update preserves the stored map; an empty map clears it.
1164
+ message RiskPermissionConditionSet {
1165
+ repeated string conditions = 1;
1166
+ }
1167
+ message RiskPermissionConditions {
1168
+ map<string, RiskPermissionConditionSet> permissions = 1;
1169
+ }
1162
1170
  message UpdateRiskPermissionMatrixRequest {
1163
1171
  string risk_level = 1;
1164
1172
  bool can_deposit = 2;
@@ -1175,6 +1183,7 @@ message UpdateRiskPermissionMatrixRequest {
1175
1183
  bool can_use_affiliate_features = 13;
1176
1184
  bool is_user_blocked = 14;
1177
1185
  bool is_active = 15;
1186
+ optional RiskPermissionConditions permission_conditions = 16;
1178
1187
  }
1179
1188
  message RiskPermissionMatrixItem {
1180
1189
  string risk_level = 1;
@@ -1194,6 +1203,7 @@ message RiskPermissionMatrixItem {
1194
1203
  bool is_active = 15;
1195
1204
  optional string created_at = 16;
1196
1205
  optional string updated_at = 17;
1206
+ optional RiskPermissionConditions permission_conditions = 18;
1197
1207
  }
1198
1208
  message RiskPermissionMatricesResponse {
1199
1209
  repeated RiskPermissionMatrixItem items = 1;
package/user/user_pb.js CHANGED
@@ -214,6 +214,8 @@ goog.exportSymbol('proto.user.ResponsibleGamingSelfExclusionOverview', null, glo
214
214
  goog.exportSymbol('proto.user.ResponsibleGamingTimeLimitDecisionDetail', null, global);
215
215
  goog.exportSymbol('proto.user.ResponsibleGamingTimeLimitOverview', null, global);
216
216
  goog.exportSymbol('proto.user.ResponsibleGamingTimeLimitScopeOverview', null, global);
217
+ goog.exportSymbol('proto.user.RiskPermissionConditionSet', null, global);
218
+ goog.exportSymbol('proto.user.RiskPermissionConditions', null, global);
217
219
  goog.exportSymbol('proto.user.RiskPermissionMatricesResponse', null, global);
218
220
  goog.exportSymbol('proto.user.RiskPermissionMatrixItem', null, global);
219
221
  goog.exportSymbol('proto.user.RiskPermissionMatrixLimitItem', null, global);
@@ -2547,6 +2549,48 @@ if (goog.DEBUG && !COMPILED) {
2547
2549
  */
2548
2550
  proto.user.ReadRiskPermissionMatrixRequest.displayName = 'proto.user.ReadRiskPermissionMatrixRequest';
2549
2551
  }
2552
+ /**
2553
+ * Generated by JsPbCodeGenerator.
2554
+ * @param {Array=} opt_data Optional initial data array, typically from a
2555
+ * server response, or constructed directly in Javascript. The array is used
2556
+ * in place and becomes part of the constructed object. It is not cloned.
2557
+ * If no data is provided, the constructed object will be empty, but still
2558
+ * valid.
2559
+ * @extends {jspb.Message}
2560
+ * @constructor
2561
+ */
2562
+ proto.user.RiskPermissionConditionSet = function(opt_data) {
2563
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.user.RiskPermissionConditionSet.repeatedFields_, null);
2564
+ };
2565
+ goog.inherits(proto.user.RiskPermissionConditionSet, jspb.Message);
2566
+ if (goog.DEBUG && !COMPILED) {
2567
+ /**
2568
+ * @public
2569
+ * @override
2570
+ */
2571
+ proto.user.RiskPermissionConditionSet.displayName = 'proto.user.RiskPermissionConditionSet';
2572
+ }
2573
+ /**
2574
+ * Generated by JsPbCodeGenerator.
2575
+ * @param {Array=} opt_data Optional initial data array, typically from a
2576
+ * server response, or constructed directly in Javascript. The array is used
2577
+ * in place and becomes part of the constructed object. It is not cloned.
2578
+ * If no data is provided, the constructed object will be empty, but still
2579
+ * valid.
2580
+ * @extends {jspb.Message}
2581
+ * @constructor
2582
+ */
2583
+ proto.user.RiskPermissionConditions = function(opt_data) {
2584
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2585
+ };
2586
+ goog.inherits(proto.user.RiskPermissionConditions, jspb.Message);
2587
+ if (goog.DEBUG && !COMPILED) {
2588
+ /**
2589
+ * @public
2590
+ * @override
2591
+ */
2592
+ proto.user.RiskPermissionConditions.displayName = 'proto.user.RiskPermissionConditions';
2593
+ }
2550
2594
  /**
2551
2595
  * Generated by JsPbCodeGenerator.
2552
2596
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -49011,6 +49055,295 @@ proto.user.ReadRiskPermissionMatrixRequest.prototype.setRiskLevel = function(val
49011
49055
 
49012
49056
 
49013
49057
 
49058
+ /**
49059
+ * List of repeated fields within this message type.
49060
+ * @private {!Array<number>}
49061
+ * @const
49062
+ */
49063
+ proto.user.RiskPermissionConditionSet.repeatedFields_ = [1];
49064
+
49065
+
49066
+
49067
+ if (jspb.Message.GENERATE_TO_OBJECT) {
49068
+ /**
49069
+ * Creates an object representation of this proto.
49070
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
49071
+ * Optional fields that are not set will be set to undefined.
49072
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
49073
+ * For the list of reserved names please see:
49074
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
49075
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
49076
+ * JSPB instance for transitional soy proto support:
49077
+ * http://goto/soy-param-migration
49078
+ * @return {!Object}
49079
+ */
49080
+ proto.user.RiskPermissionConditionSet.prototype.toObject = function(opt_includeInstance) {
49081
+ return proto.user.RiskPermissionConditionSet.toObject(opt_includeInstance, this);
49082
+ };
49083
+
49084
+
49085
+ /**
49086
+ * Static version of the {@see toObject} method.
49087
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
49088
+ * the JSPB instance for transitional soy proto support:
49089
+ * http://goto/soy-param-migration
49090
+ * @param {!proto.user.RiskPermissionConditionSet} msg The msg instance to transform.
49091
+ * @return {!Object}
49092
+ * @suppress {unusedLocalVariables} f is only used for nested messages
49093
+ */
49094
+ proto.user.RiskPermissionConditionSet.toObject = function(includeInstance, msg) {
49095
+ var f, obj = {
49096
+ conditionsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
49097
+ };
49098
+
49099
+ if (includeInstance) {
49100
+ obj.$jspbMessageInstance = msg;
49101
+ }
49102
+ return obj;
49103
+ };
49104
+ }
49105
+
49106
+
49107
+ /**
49108
+ * Deserializes binary data (in protobuf wire format).
49109
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
49110
+ * @return {!proto.user.RiskPermissionConditionSet}
49111
+ */
49112
+ proto.user.RiskPermissionConditionSet.deserializeBinary = function(bytes) {
49113
+ var reader = new jspb.BinaryReader(bytes);
49114
+ var msg = new proto.user.RiskPermissionConditionSet;
49115
+ return proto.user.RiskPermissionConditionSet.deserializeBinaryFromReader(msg, reader);
49116
+ };
49117
+
49118
+
49119
+ /**
49120
+ * Deserializes binary data (in protobuf wire format) from the
49121
+ * given reader into the given message object.
49122
+ * @param {!proto.user.RiskPermissionConditionSet} msg The message object to deserialize into.
49123
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
49124
+ * @return {!proto.user.RiskPermissionConditionSet}
49125
+ */
49126
+ proto.user.RiskPermissionConditionSet.deserializeBinaryFromReader = function(msg, reader) {
49127
+ while (reader.nextField()) {
49128
+ if (reader.isEndGroup()) {
49129
+ break;
49130
+ }
49131
+ var field = reader.getFieldNumber();
49132
+ switch (field) {
49133
+ case 1:
49134
+ var value = /** @type {string} */ (reader.readString());
49135
+ msg.addConditions(value);
49136
+ break;
49137
+ default:
49138
+ reader.skipField();
49139
+ break;
49140
+ }
49141
+ }
49142
+ return msg;
49143
+ };
49144
+
49145
+
49146
+ /**
49147
+ * Serializes the message to binary data (in protobuf wire format).
49148
+ * @return {!Uint8Array}
49149
+ */
49150
+ proto.user.RiskPermissionConditionSet.prototype.serializeBinary = function() {
49151
+ var writer = new jspb.BinaryWriter();
49152
+ proto.user.RiskPermissionConditionSet.serializeBinaryToWriter(this, writer);
49153
+ return writer.getResultBuffer();
49154
+ };
49155
+
49156
+
49157
+ /**
49158
+ * Serializes the given message to binary data (in protobuf wire
49159
+ * format), writing to the given BinaryWriter.
49160
+ * @param {!proto.user.RiskPermissionConditionSet} message
49161
+ * @param {!jspb.BinaryWriter} writer
49162
+ * @suppress {unusedLocalVariables} f is only used for nested messages
49163
+ */
49164
+ proto.user.RiskPermissionConditionSet.serializeBinaryToWriter = function(message, writer) {
49165
+ var f = undefined;
49166
+ f = message.getConditionsList();
49167
+ if (f.length > 0) {
49168
+ writer.writeRepeatedString(
49169
+ 1,
49170
+ f
49171
+ );
49172
+ }
49173
+ };
49174
+
49175
+
49176
+ /**
49177
+ * repeated string conditions = 1;
49178
+ * @return {!Array<string>}
49179
+ */
49180
+ proto.user.RiskPermissionConditionSet.prototype.getConditionsList = function() {
49181
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
49182
+ };
49183
+
49184
+
49185
+ /**
49186
+ * @param {!Array<string>} value
49187
+ * @return {!proto.user.RiskPermissionConditionSet} returns this
49188
+ */
49189
+ proto.user.RiskPermissionConditionSet.prototype.setConditionsList = function(value) {
49190
+ return jspb.Message.setField(this, 1, value || []);
49191
+ };
49192
+
49193
+
49194
+ /**
49195
+ * @param {string} value
49196
+ * @param {number=} opt_index
49197
+ * @return {!proto.user.RiskPermissionConditionSet} returns this
49198
+ */
49199
+ proto.user.RiskPermissionConditionSet.prototype.addConditions = function(value, opt_index) {
49200
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
49201
+ };
49202
+
49203
+
49204
+ /**
49205
+ * Clears the list making it empty but non-null.
49206
+ * @return {!proto.user.RiskPermissionConditionSet} returns this
49207
+ */
49208
+ proto.user.RiskPermissionConditionSet.prototype.clearConditionsList = function() {
49209
+ return this.setConditionsList([]);
49210
+ };
49211
+
49212
+
49213
+
49214
+
49215
+
49216
+ if (jspb.Message.GENERATE_TO_OBJECT) {
49217
+ /**
49218
+ * Creates an object representation of this proto.
49219
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
49220
+ * Optional fields that are not set will be set to undefined.
49221
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
49222
+ * For the list of reserved names please see:
49223
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
49224
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
49225
+ * JSPB instance for transitional soy proto support:
49226
+ * http://goto/soy-param-migration
49227
+ * @return {!Object}
49228
+ */
49229
+ proto.user.RiskPermissionConditions.prototype.toObject = function(opt_includeInstance) {
49230
+ return proto.user.RiskPermissionConditions.toObject(opt_includeInstance, this);
49231
+ };
49232
+
49233
+
49234
+ /**
49235
+ * Static version of the {@see toObject} method.
49236
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
49237
+ * the JSPB instance for transitional soy proto support:
49238
+ * http://goto/soy-param-migration
49239
+ * @param {!proto.user.RiskPermissionConditions} msg The msg instance to transform.
49240
+ * @return {!Object}
49241
+ * @suppress {unusedLocalVariables} f is only used for nested messages
49242
+ */
49243
+ proto.user.RiskPermissionConditions.toObject = function(includeInstance, msg) {
49244
+ var f, obj = {
49245
+ permissionsMap: (f = msg.getPermissionsMap()) ? f.toObject(includeInstance, proto.user.RiskPermissionConditionSet.toObject) : []
49246
+ };
49247
+
49248
+ if (includeInstance) {
49249
+ obj.$jspbMessageInstance = msg;
49250
+ }
49251
+ return obj;
49252
+ };
49253
+ }
49254
+
49255
+
49256
+ /**
49257
+ * Deserializes binary data (in protobuf wire format).
49258
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
49259
+ * @return {!proto.user.RiskPermissionConditions}
49260
+ */
49261
+ proto.user.RiskPermissionConditions.deserializeBinary = function(bytes) {
49262
+ var reader = new jspb.BinaryReader(bytes);
49263
+ var msg = new proto.user.RiskPermissionConditions;
49264
+ return proto.user.RiskPermissionConditions.deserializeBinaryFromReader(msg, reader);
49265
+ };
49266
+
49267
+
49268
+ /**
49269
+ * Deserializes binary data (in protobuf wire format) from the
49270
+ * given reader into the given message object.
49271
+ * @param {!proto.user.RiskPermissionConditions} msg The message object to deserialize into.
49272
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
49273
+ * @return {!proto.user.RiskPermissionConditions}
49274
+ */
49275
+ proto.user.RiskPermissionConditions.deserializeBinaryFromReader = function(msg, reader) {
49276
+ while (reader.nextField()) {
49277
+ if (reader.isEndGroup()) {
49278
+ break;
49279
+ }
49280
+ var field = reader.getFieldNumber();
49281
+ switch (field) {
49282
+ case 1:
49283
+ var value = msg.getPermissionsMap();
49284
+ reader.readMessage(value, function(message, reader) {
49285
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.user.RiskPermissionConditionSet.deserializeBinaryFromReader, "", new proto.user.RiskPermissionConditionSet());
49286
+ });
49287
+ break;
49288
+ default:
49289
+ reader.skipField();
49290
+ break;
49291
+ }
49292
+ }
49293
+ return msg;
49294
+ };
49295
+
49296
+
49297
+ /**
49298
+ * Serializes the message to binary data (in protobuf wire format).
49299
+ * @return {!Uint8Array}
49300
+ */
49301
+ proto.user.RiskPermissionConditions.prototype.serializeBinary = function() {
49302
+ var writer = new jspb.BinaryWriter();
49303
+ proto.user.RiskPermissionConditions.serializeBinaryToWriter(this, writer);
49304
+ return writer.getResultBuffer();
49305
+ };
49306
+
49307
+
49308
+ /**
49309
+ * Serializes the given message to binary data (in protobuf wire
49310
+ * format), writing to the given BinaryWriter.
49311
+ * @param {!proto.user.RiskPermissionConditions} message
49312
+ * @param {!jspb.BinaryWriter} writer
49313
+ * @suppress {unusedLocalVariables} f is only used for nested messages
49314
+ */
49315
+ proto.user.RiskPermissionConditions.serializeBinaryToWriter = function(message, writer) {
49316
+ var f = undefined;
49317
+ f = message.getPermissionsMap(true);
49318
+ if (f && f.getLength() > 0) {
49319
+ f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.user.RiskPermissionConditionSet.serializeBinaryToWriter);
49320
+ }
49321
+ };
49322
+
49323
+
49324
+ /**
49325
+ * map<string, RiskPermissionConditionSet> permissions = 1;
49326
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
49327
+ * empty, instead returning `undefined`
49328
+ * @return {!jspb.Map<string,!proto.user.RiskPermissionConditionSet>}
49329
+ */
49330
+ proto.user.RiskPermissionConditions.prototype.getPermissionsMap = function(opt_noLazyCreate) {
49331
+ return /** @type {!jspb.Map<string,!proto.user.RiskPermissionConditionSet>} */ (
49332
+ jspb.Message.getMapField(this, 1, opt_noLazyCreate,
49333
+ proto.user.RiskPermissionConditionSet));
49334
+ };
49335
+
49336
+
49337
+ /**
49338
+ * Clears values from the map. The map will be non-null.
49339
+ * @return {!proto.user.RiskPermissionConditions} returns this
49340
+ */
49341
+ proto.user.RiskPermissionConditions.prototype.clearPermissionsMap = function() {
49342
+ this.getPermissionsMap().clear();
49343
+ return this;};
49344
+
49345
+
49346
+
49014
49347
 
49015
49348
 
49016
49349
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -49056,7 +49389,8 @@ proto.user.UpdateRiskPermissionMatrixRequest.toObject = function(includeInstance
49056
49389
  canCryptoConvert: jspb.Message.getBooleanFieldWithDefault(msg, 12, false),
49057
49390
  canUseAffiliateFeatures: jspb.Message.getBooleanFieldWithDefault(msg, 13, false),
49058
49391
  isUserBlocked: jspb.Message.getBooleanFieldWithDefault(msg, 14, false),
49059
- isActive: jspb.Message.getBooleanFieldWithDefault(msg, 15, false)
49392
+ isActive: jspb.Message.getBooleanFieldWithDefault(msg, 15, false),
49393
+ permissionConditions: (f = msg.getPermissionConditions()) && proto.user.RiskPermissionConditions.toObject(includeInstance, f)
49060
49394
  };
49061
49395
 
49062
49396
  if (includeInstance) {
@@ -49153,6 +49487,11 @@ proto.user.UpdateRiskPermissionMatrixRequest.deserializeBinaryFromReader = funct
49153
49487
  var value = /** @type {boolean} */ (reader.readBool());
49154
49488
  msg.setIsActive(value);
49155
49489
  break;
49490
+ case 16:
49491
+ var value = new proto.user.RiskPermissionConditions;
49492
+ reader.readMessage(value,proto.user.RiskPermissionConditions.deserializeBinaryFromReader);
49493
+ msg.setPermissionConditions(value);
49494
+ break;
49156
49495
  default:
49157
49496
  reader.skipField();
49158
49497
  break;
@@ -49287,6 +49626,14 @@ proto.user.UpdateRiskPermissionMatrixRequest.serializeBinaryToWriter = function(
49287
49626
  f
49288
49627
  );
49289
49628
  }
49629
+ f = message.getPermissionConditions();
49630
+ if (f != null) {
49631
+ writer.writeMessage(
49632
+ 16,
49633
+ f,
49634
+ proto.user.RiskPermissionConditions.serializeBinaryToWriter
49635
+ );
49636
+ }
49290
49637
  };
49291
49638
 
49292
49639
 
@@ -49560,6 +49907,43 @@ proto.user.UpdateRiskPermissionMatrixRequest.prototype.setIsActive = function(va
49560
49907
  };
49561
49908
 
49562
49909
 
49910
+ /**
49911
+ * optional RiskPermissionConditions permission_conditions = 16;
49912
+ * @return {?proto.user.RiskPermissionConditions}
49913
+ */
49914
+ proto.user.UpdateRiskPermissionMatrixRequest.prototype.getPermissionConditions = function() {
49915
+ return /** @type{?proto.user.RiskPermissionConditions} */ (
49916
+ jspb.Message.getWrapperField(this, proto.user.RiskPermissionConditions, 16));
49917
+ };
49918
+
49919
+
49920
+ /**
49921
+ * @param {?proto.user.RiskPermissionConditions|undefined} value
49922
+ * @return {!proto.user.UpdateRiskPermissionMatrixRequest} returns this
49923
+ */
49924
+ proto.user.UpdateRiskPermissionMatrixRequest.prototype.setPermissionConditions = function(value) {
49925
+ return jspb.Message.setWrapperField(this, 16, value);
49926
+ };
49927
+
49928
+
49929
+ /**
49930
+ * Clears the message field making it undefined.
49931
+ * @return {!proto.user.UpdateRiskPermissionMatrixRequest} returns this
49932
+ */
49933
+ proto.user.UpdateRiskPermissionMatrixRequest.prototype.clearPermissionConditions = function() {
49934
+ return this.setPermissionConditions(undefined);
49935
+ };
49936
+
49937
+
49938
+ /**
49939
+ * Returns whether this field is set.
49940
+ * @return {boolean}
49941
+ */
49942
+ proto.user.UpdateRiskPermissionMatrixRequest.prototype.hasPermissionConditions = function() {
49943
+ return jspb.Message.getField(this, 16) != null;
49944
+ };
49945
+
49946
+
49563
49947
 
49564
49948
 
49565
49949
 
@@ -49608,7 +49992,8 @@ proto.user.RiskPermissionMatrixItem.toObject = function(includeInstance, msg) {
49608
49992
  isUserBlocked: jspb.Message.getBooleanFieldWithDefault(msg, 14, false),
49609
49993
  isActive: jspb.Message.getBooleanFieldWithDefault(msg, 15, false),
49610
49994
  createdAt: jspb.Message.getFieldWithDefault(msg, 16, ""),
49611
- updatedAt: jspb.Message.getFieldWithDefault(msg, 17, "")
49995
+ updatedAt: jspb.Message.getFieldWithDefault(msg, 17, ""),
49996
+ permissionConditions: (f = msg.getPermissionConditions()) && proto.user.RiskPermissionConditions.toObject(includeInstance, f)
49612
49997
  };
49613
49998
 
49614
49999
  if (includeInstance) {
@@ -49713,6 +50098,11 @@ proto.user.RiskPermissionMatrixItem.deserializeBinaryFromReader = function(msg,
49713
50098
  var value = /** @type {string} */ (reader.readString());
49714
50099
  msg.setUpdatedAt(value);
49715
50100
  break;
50101
+ case 18:
50102
+ var value = new proto.user.RiskPermissionConditions;
50103
+ reader.readMessage(value,proto.user.RiskPermissionConditions.deserializeBinaryFromReader);
50104
+ msg.setPermissionConditions(value);
50105
+ break;
49716
50106
  default:
49717
50107
  reader.skipField();
49718
50108
  break;
@@ -49861,6 +50251,14 @@ proto.user.RiskPermissionMatrixItem.serializeBinaryToWriter = function(message,
49861
50251
  f
49862
50252
  );
49863
50253
  }
50254
+ f = message.getPermissionConditions();
50255
+ if (f != null) {
50256
+ writer.writeMessage(
50257
+ 18,
50258
+ f,
50259
+ proto.user.RiskPermissionConditions.serializeBinaryToWriter
50260
+ );
50261
+ }
49864
50262
  };
49865
50263
 
49866
50264
 
@@ -50206,6 +50604,43 @@ proto.user.RiskPermissionMatrixItem.prototype.hasUpdatedAt = function() {
50206
50604
  };
50207
50605
 
50208
50606
 
50607
+ /**
50608
+ * optional RiskPermissionConditions permission_conditions = 18;
50609
+ * @return {?proto.user.RiskPermissionConditions}
50610
+ */
50611
+ proto.user.RiskPermissionMatrixItem.prototype.getPermissionConditions = function() {
50612
+ return /** @type{?proto.user.RiskPermissionConditions} */ (
50613
+ jspb.Message.getWrapperField(this, proto.user.RiskPermissionConditions, 18));
50614
+ };
50615
+
50616
+
50617
+ /**
50618
+ * @param {?proto.user.RiskPermissionConditions|undefined} value
50619
+ * @return {!proto.user.RiskPermissionMatrixItem} returns this
50620
+ */
50621
+ proto.user.RiskPermissionMatrixItem.prototype.setPermissionConditions = function(value) {
50622
+ return jspb.Message.setWrapperField(this, 18, value);
50623
+ };
50624
+
50625
+
50626
+ /**
50627
+ * Clears the message field making it undefined.
50628
+ * @return {!proto.user.RiskPermissionMatrixItem} returns this
50629
+ */
50630
+ proto.user.RiskPermissionMatrixItem.prototype.clearPermissionConditions = function() {
50631
+ return this.setPermissionConditions(undefined);
50632
+ };
50633
+
50634
+
50635
+ /**
50636
+ * Returns whether this field is set.
50637
+ * @return {boolean}
50638
+ */
50639
+ proto.user.RiskPermissionMatrixItem.prototype.hasPermissionConditions = function() {
50640
+ return jspb.Message.getField(this, 18) != null;
50641
+ };
50642
+
50643
+
50209
50644
 
50210
50645
  /**
50211
50646
  * List of repeated fields within this message type.