protobuf-platform 1.2.471 → 1.2.472

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_pb.js CHANGED
@@ -1,4 +1,4 @@
1
- // source: bonus.proto
1
+ // source: bonus/bonus.proto
2
2
  /**
3
3
  * @fileoverview
4
4
  * @enhanceable
@@ -21,6 +21,8 @@ var global = (function() {
21
21
  return Function('return this')();
22
22
  }.call(null));
23
23
 
24
+ var game_game_pb = require('../game/game_pb.js');
25
+ goog.object.extend(proto, game_game_pb);
24
26
  goog.exportSymbol('proto.bonus.ActivationRule', null, global);
25
27
  goog.exportSymbol('proto.bonus.ActiveWageringUserBonusItem', null, global);
26
28
  goog.exportSymbol('proto.bonus.ActiveWageringUserBonusesResponse', null, global);
@@ -61,6 +63,7 @@ goog.exportSymbol('proto.bonus.GetBonusBySlugRequest', null, global);
61
63
  goog.exportSymbol('proto.bonus.GetBonusRequest', null, global);
62
64
  goog.exportSymbol('proto.bonus.GetBonusSnapshotsByIdsRequest', null, global);
63
65
  goog.exportSymbol('proto.bonus.GetBonusTranslationRequest', null, global);
66
+ goog.exportSymbol('proto.bonus.GetBonusWagerGamesRequest', null, global);
64
67
  goog.exportSymbol('proto.bonus.GetCommonUserBonusItemsRequest', null, global);
65
68
  goog.exportSymbol('proto.bonus.GetCommonUserBonusItemsResponse', null, global);
66
69
  goog.exportSymbol('proto.bonus.GetDepositEligibleUserBonusesRequest', null, global);
@@ -436,6 +439,27 @@ if (goog.DEBUG && !COMPILED) {
436
439
  */
437
440
  proto.bonus.GetBonusBySlugRequest.displayName = 'proto.bonus.GetBonusBySlugRequest';
438
441
  }
442
+ /**
443
+ * Generated by JsPbCodeGenerator.
444
+ * @param {Array=} opt_data Optional initial data array, typically from a
445
+ * server response, or constructed directly in Javascript. The array is used
446
+ * in place and becomes part of the constructed object. It is not cloned.
447
+ * If no data is provided, the constructed object will be empty, but still
448
+ * valid.
449
+ * @extends {jspb.Message}
450
+ * @constructor
451
+ */
452
+ proto.bonus.GetBonusWagerGamesRequest = function(opt_data) {
453
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
454
+ };
455
+ goog.inherits(proto.bonus.GetBonusWagerGamesRequest, jspb.Message);
456
+ if (goog.DEBUG && !COMPILED) {
457
+ /**
458
+ * @public
459
+ * @override
460
+ */
461
+ proto.bonus.GetBonusWagerGamesRequest.displayName = 'proto.bonus.GetBonusWagerGamesRequest';
462
+ }
439
463
  /**
440
464
  * Generated by JsPbCodeGenerator.
441
465
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -6855,6 +6879,376 @@ proto.bonus.GetBonusBySlugRequest.prototype.hasLocale = function() {
6855
6879
 
6856
6880
 
6857
6881
 
6882
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6883
+ /**
6884
+ * Creates an object representation of this proto.
6885
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6886
+ * Optional fields that are not set will be set to undefined.
6887
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6888
+ * For the list of reserved names please see:
6889
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6890
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6891
+ * JSPB instance for transitional soy proto support:
6892
+ * http://goto/soy-param-migration
6893
+ * @return {!Object}
6894
+ */
6895
+ proto.bonus.GetBonusWagerGamesRequest.prototype.toObject = function(opt_includeInstance) {
6896
+ return proto.bonus.GetBonusWagerGamesRequest.toObject(opt_includeInstance, this);
6897
+ };
6898
+
6899
+
6900
+ /**
6901
+ * Static version of the {@see toObject} method.
6902
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6903
+ * the JSPB instance for transitional soy proto support:
6904
+ * http://goto/soy-param-migration
6905
+ * @param {!proto.bonus.GetBonusWagerGamesRequest} msg The msg instance to transform.
6906
+ * @return {!Object}
6907
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6908
+ */
6909
+ proto.bonus.GetBonusWagerGamesRequest.toObject = function(includeInstance, msg) {
6910
+ var f, obj = {
6911
+ bonusId: jspb.Message.getFieldWithDefault(msg, 1, 0),
6912
+ limit: jspb.Message.getFieldWithDefault(msg, 2, 0),
6913
+ offset: jspb.Message.getFieldWithDefault(msg, 3, 0),
6914
+ isMobile: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
6915
+ country: jspb.Message.getFieldWithDefault(msg, 5, ""),
6916
+ adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 6, false)
6917
+ };
6918
+
6919
+ if (includeInstance) {
6920
+ obj.$jspbMessageInstance = msg;
6921
+ }
6922
+ return obj;
6923
+ };
6924
+ }
6925
+
6926
+
6927
+ /**
6928
+ * Deserializes binary data (in protobuf wire format).
6929
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
6930
+ * @return {!proto.bonus.GetBonusWagerGamesRequest}
6931
+ */
6932
+ proto.bonus.GetBonusWagerGamesRequest.deserializeBinary = function(bytes) {
6933
+ var reader = new jspb.BinaryReader(bytes);
6934
+ var msg = new proto.bonus.GetBonusWagerGamesRequest;
6935
+ return proto.bonus.GetBonusWagerGamesRequest.deserializeBinaryFromReader(msg, reader);
6936
+ };
6937
+
6938
+
6939
+ /**
6940
+ * Deserializes binary data (in protobuf wire format) from the
6941
+ * given reader into the given message object.
6942
+ * @param {!proto.bonus.GetBonusWagerGamesRequest} msg The message object to deserialize into.
6943
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6944
+ * @return {!proto.bonus.GetBonusWagerGamesRequest}
6945
+ */
6946
+ proto.bonus.GetBonusWagerGamesRequest.deserializeBinaryFromReader = function(msg, reader) {
6947
+ while (reader.nextField()) {
6948
+ if (reader.isEndGroup()) {
6949
+ break;
6950
+ }
6951
+ var field = reader.getFieldNumber();
6952
+ switch (field) {
6953
+ case 1:
6954
+ var value = /** @type {number} */ (reader.readInt32());
6955
+ msg.setBonusId(value);
6956
+ break;
6957
+ case 2:
6958
+ var value = /** @type {number} */ (reader.readInt32());
6959
+ msg.setLimit(value);
6960
+ break;
6961
+ case 3:
6962
+ var value = /** @type {number} */ (reader.readInt32());
6963
+ msg.setOffset(value);
6964
+ break;
6965
+ case 4:
6966
+ var value = /** @type {boolean} */ (reader.readBool());
6967
+ msg.setIsMobile(value);
6968
+ break;
6969
+ case 5:
6970
+ var value = /** @type {string} */ (reader.readString());
6971
+ msg.setCountry(value);
6972
+ break;
6973
+ case 6:
6974
+ var value = /** @type {boolean} */ (reader.readBool());
6975
+ msg.setAdminSide(value);
6976
+ break;
6977
+ default:
6978
+ reader.skipField();
6979
+ break;
6980
+ }
6981
+ }
6982
+ return msg;
6983
+ };
6984
+
6985
+
6986
+ /**
6987
+ * Serializes the message to binary data (in protobuf wire format).
6988
+ * @return {!Uint8Array}
6989
+ */
6990
+ proto.bonus.GetBonusWagerGamesRequest.prototype.serializeBinary = function() {
6991
+ var writer = new jspb.BinaryWriter();
6992
+ proto.bonus.GetBonusWagerGamesRequest.serializeBinaryToWriter(this, writer);
6993
+ return writer.getResultBuffer();
6994
+ };
6995
+
6996
+
6997
+ /**
6998
+ * Serializes the given message to binary data (in protobuf wire
6999
+ * format), writing to the given BinaryWriter.
7000
+ * @param {!proto.bonus.GetBonusWagerGamesRequest} message
7001
+ * @param {!jspb.BinaryWriter} writer
7002
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7003
+ */
7004
+ proto.bonus.GetBonusWagerGamesRequest.serializeBinaryToWriter = function(message, writer) {
7005
+ var f = undefined;
7006
+ f = message.getBonusId();
7007
+ if (f !== 0) {
7008
+ writer.writeInt32(
7009
+ 1,
7010
+ f
7011
+ );
7012
+ }
7013
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
7014
+ if (f != null) {
7015
+ writer.writeInt32(
7016
+ 2,
7017
+ f
7018
+ );
7019
+ }
7020
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
7021
+ if (f != null) {
7022
+ writer.writeInt32(
7023
+ 3,
7024
+ f
7025
+ );
7026
+ }
7027
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 4));
7028
+ if (f != null) {
7029
+ writer.writeBool(
7030
+ 4,
7031
+ f
7032
+ );
7033
+ }
7034
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
7035
+ if (f != null) {
7036
+ writer.writeString(
7037
+ 5,
7038
+ f
7039
+ );
7040
+ }
7041
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 6));
7042
+ if (f != null) {
7043
+ writer.writeBool(
7044
+ 6,
7045
+ f
7046
+ );
7047
+ }
7048
+ };
7049
+
7050
+
7051
+ /**
7052
+ * optional int32 bonus_id = 1;
7053
+ * @return {number}
7054
+ */
7055
+ proto.bonus.GetBonusWagerGamesRequest.prototype.getBonusId = function() {
7056
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
7057
+ };
7058
+
7059
+
7060
+ /**
7061
+ * @param {number} value
7062
+ * @return {!proto.bonus.GetBonusWagerGamesRequest} returns this
7063
+ */
7064
+ proto.bonus.GetBonusWagerGamesRequest.prototype.setBonusId = function(value) {
7065
+ return jspb.Message.setProto3IntField(this, 1, value);
7066
+ };
7067
+
7068
+
7069
+ /**
7070
+ * optional int32 limit = 2;
7071
+ * @return {number}
7072
+ */
7073
+ proto.bonus.GetBonusWagerGamesRequest.prototype.getLimit = function() {
7074
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
7075
+ };
7076
+
7077
+
7078
+ /**
7079
+ * @param {number} value
7080
+ * @return {!proto.bonus.GetBonusWagerGamesRequest} returns this
7081
+ */
7082
+ proto.bonus.GetBonusWagerGamesRequest.prototype.setLimit = function(value) {
7083
+ return jspb.Message.setField(this, 2, value);
7084
+ };
7085
+
7086
+
7087
+ /**
7088
+ * Clears the field making it undefined.
7089
+ * @return {!proto.bonus.GetBonusWagerGamesRequest} returns this
7090
+ */
7091
+ proto.bonus.GetBonusWagerGamesRequest.prototype.clearLimit = function() {
7092
+ return jspb.Message.setField(this, 2, undefined);
7093
+ };
7094
+
7095
+
7096
+ /**
7097
+ * Returns whether this field is set.
7098
+ * @return {boolean}
7099
+ */
7100
+ proto.bonus.GetBonusWagerGamesRequest.prototype.hasLimit = function() {
7101
+ return jspb.Message.getField(this, 2) != null;
7102
+ };
7103
+
7104
+
7105
+ /**
7106
+ * optional int32 offset = 3;
7107
+ * @return {number}
7108
+ */
7109
+ proto.bonus.GetBonusWagerGamesRequest.prototype.getOffset = function() {
7110
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
7111
+ };
7112
+
7113
+
7114
+ /**
7115
+ * @param {number} value
7116
+ * @return {!proto.bonus.GetBonusWagerGamesRequest} returns this
7117
+ */
7118
+ proto.bonus.GetBonusWagerGamesRequest.prototype.setOffset = function(value) {
7119
+ return jspb.Message.setField(this, 3, value);
7120
+ };
7121
+
7122
+
7123
+ /**
7124
+ * Clears the field making it undefined.
7125
+ * @return {!proto.bonus.GetBonusWagerGamesRequest} returns this
7126
+ */
7127
+ proto.bonus.GetBonusWagerGamesRequest.prototype.clearOffset = function() {
7128
+ return jspb.Message.setField(this, 3, undefined);
7129
+ };
7130
+
7131
+
7132
+ /**
7133
+ * Returns whether this field is set.
7134
+ * @return {boolean}
7135
+ */
7136
+ proto.bonus.GetBonusWagerGamesRequest.prototype.hasOffset = function() {
7137
+ return jspb.Message.getField(this, 3) != null;
7138
+ };
7139
+
7140
+
7141
+ /**
7142
+ * optional bool is_mobile = 4;
7143
+ * @return {boolean}
7144
+ */
7145
+ proto.bonus.GetBonusWagerGamesRequest.prototype.getIsMobile = function() {
7146
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
7147
+ };
7148
+
7149
+
7150
+ /**
7151
+ * @param {boolean} value
7152
+ * @return {!proto.bonus.GetBonusWagerGamesRequest} returns this
7153
+ */
7154
+ proto.bonus.GetBonusWagerGamesRequest.prototype.setIsMobile = function(value) {
7155
+ return jspb.Message.setField(this, 4, value);
7156
+ };
7157
+
7158
+
7159
+ /**
7160
+ * Clears the field making it undefined.
7161
+ * @return {!proto.bonus.GetBonusWagerGamesRequest} returns this
7162
+ */
7163
+ proto.bonus.GetBonusWagerGamesRequest.prototype.clearIsMobile = function() {
7164
+ return jspb.Message.setField(this, 4, undefined);
7165
+ };
7166
+
7167
+
7168
+ /**
7169
+ * Returns whether this field is set.
7170
+ * @return {boolean}
7171
+ */
7172
+ proto.bonus.GetBonusWagerGamesRequest.prototype.hasIsMobile = function() {
7173
+ return jspb.Message.getField(this, 4) != null;
7174
+ };
7175
+
7176
+
7177
+ /**
7178
+ * optional string country = 5;
7179
+ * @return {string}
7180
+ */
7181
+ proto.bonus.GetBonusWagerGamesRequest.prototype.getCountry = function() {
7182
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
7183
+ };
7184
+
7185
+
7186
+ /**
7187
+ * @param {string} value
7188
+ * @return {!proto.bonus.GetBonusWagerGamesRequest} returns this
7189
+ */
7190
+ proto.bonus.GetBonusWagerGamesRequest.prototype.setCountry = function(value) {
7191
+ return jspb.Message.setField(this, 5, value);
7192
+ };
7193
+
7194
+
7195
+ /**
7196
+ * Clears the field making it undefined.
7197
+ * @return {!proto.bonus.GetBonusWagerGamesRequest} returns this
7198
+ */
7199
+ proto.bonus.GetBonusWagerGamesRequest.prototype.clearCountry = function() {
7200
+ return jspb.Message.setField(this, 5, undefined);
7201
+ };
7202
+
7203
+
7204
+ /**
7205
+ * Returns whether this field is set.
7206
+ * @return {boolean}
7207
+ */
7208
+ proto.bonus.GetBonusWagerGamesRequest.prototype.hasCountry = function() {
7209
+ return jspb.Message.getField(this, 5) != null;
7210
+ };
7211
+
7212
+
7213
+ /**
7214
+ * optional bool admin_side = 6;
7215
+ * @return {boolean}
7216
+ */
7217
+ proto.bonus.GetBonusWagerGamesRequest.prototype.getAdminSide = function() {
7218
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
7219
+ };
7220
+
7221
+
7222
+ /**
7223
+ * @param {boolean} value
7224
+ * @return {!proto.bonus.GetBonusWagerGamesRequest} returns this
7225
+ */
7226
+ proto.bonus.GetBonusWagerGamesRequest.prototype.setAdminSide = function(value) {
7227
+ return jspb.Message.setField(this, 6, value);
7228
+ };
7229
+
7230
+
7231
+ /**
7232
+ * Clears the field making it undefined.
7233
+ * @return {!proto.bonus.GetBonusWagerGamesRequest} returns this
7234
+ */
7235
+ proto.bonus.GetBonusWagerGamesRequest.prototype.clearAdminSide = function() {
7236
+ return jspb.Message.setField(this, 6, undefined);
7237
+ };
7238
+
7239
+
7240
+ /**
7241
+ * Returns whether this field is set.
7242
+ * @return {boolean}
7243
+ */
7244
+ proto.bonus.GetBonusWagerGamesRequest.prototype.hasAdminSide = function() {
7245
+ return jspb.Message.getField(this, 6) != null;
7246
+ };
7247
+
7248
+
7249
+
7250
+
7251
+
6858
7252
  if (jspb.Message.GENERATE_TO_OBJECT) {
6859
7253
  /**
6860
7254
  * Creates an object representation of this proto.
package/game/game.proto CHANGED
@@ -104,6 +104,8 @@ service Game {
104
104
  rpc addGamesIntoWagerList(WagerListGamesRequest) returns (GameStatusResponse);
105
105
  rpc removeGamesFromWagerList(WagerListGamesRequest) returns (GameStatusResponse);
106
106
  rpc fetchGamesFromWagerList(PaginationRequest) returns (GameItemsResponse);
107
+ // Flat paginated games from multiple wager lists combined into one result set.
108
+ rpc fetchGamesFromWagerLists(FetchGamesFromWagerListsRequest) returns (GameItemsResponse);
107
109
  rpc notProcessedGamesInWagerList(PaginationRequest) returns (GameItemsResponse);
108
110
  rpc getPoorWagerLists(WagerSearchRequest) returns (WagerListItemsResponse);
109
111
  rpc updateWagerListsInBunch(ItemsBunchRequest) returns (GameStatusResponse);
@@ -917,6 +919,15 @@ message WagerListGamesRequest {
917
919
  int32 id = 1;
918
920
  repeated int32 game_ids = 2;
919
921
  }
922
+ // Combined wager-list games query; pagination applies to the merged result.
923
+ message FetchGamesFromWagerListsRequest {
924
+ repeated int32 wager_list_ids = 1; // All wager lists to search.
925
+ optional int32 limit = 2; // Maximum number of games returned.
926
+ optional int32 offset = 3; // Number of combined result rows to skip.
927
+ optional bool is_mobile = 4;
928
+ optional string geo = 5;
929
+ optional bool admin_side = 6;
930
+ }
920
931
  message WagerListItem {
921
932
  int32 id = 1;
922
933
  string title = 2;
@@ -246,6 +246,17 @@ function deserialize_game_DashboardResponse(buffer_arg) {
246
246
  return game_pb.DashboardResponse.deserializeBinary(new Uint8Array(buffer_arg));
247
247
  }
248
248
 
249
+ function serialize_game_FetchGamesFromWagerListsRequest(arg) {
250
+ if (!(arg instanceof game_pb.FetchGamesFromWagerListsRequest)) {
251
+ throw new Error('Expected argument of type game.FetchGamesFromWagerListsRequest');
252
+ }
253
+ return Buffer.from(arg.serializeBinary());
254
+ }
255
+
256
+ function deserialize_game_FetchGamesFromWagerListsRequest(buffer_arg) {
257
+ return game_pb.FetchGamesFromWagerListsRequest.deserializeBinary(new Uint8Array(buffer_arg));
258
+ }
259
+
249
260
  function serialize_game_File(arg) {
250
261
  if (!(arg instanceof game_pb.File)) {
251
262
  throw new Error('Expected argument of type game.File');
@@ -2274,6 +2285,18 @@ readSingleWagerList: {
2274
2285
  responseSerialize: serialize_game_GameItemsResponse,
2275
2286
  responseDeserialize: deserialize_game_GameItemsResponse,
2276
2287
  },
2288
+ // Flat paginated games from multiple wager lists combined into one result set.
2289
+ fetchGamesFromWagerLists: {
2290
+ path: '/game.Game/fetchGamesFromWagerLists',
2291
+ requestStream: false,
2292
+ responseStream: false,
2293
+ requestType: game_pb.FetchGamesFromWagerListsRequest,
2294
+ responseType: game_pb.GameItemsResponse,
2295
+ requestSerialize: serialize_game_FetchGamesFromWagerListsRequest,
2296
+ requestDeserialize: deserialize_game_FetchGamesFromWagerListsRequest,
2297
+ responseSerialize: serialize_game_GameItemsResponse,
2298
+ responseDeserialize: deserialize_game_GameItemsResponse,
2299
+ },
2277
2300
  notProcessedGamesInWagerList: {
2278
2301
  path: '/game.Game/notProcessedGamesInWagerList',
2279
2302
  requestStream: false,