protobuf-platform 1.2.612 → 1.2.615

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.
@@ -292,6 +292,12 @@ message ScaleoActivityBucketItem {
292
292
  string currency = 7; // currency code used by analytic for this aggregation
293
293
  }
294
294
 
295
+ // Multi-field sort item; array order in order_by defines sort priority.
296
+ message AffiliateWageredSortItem {
297
+ string field = 1; // V1 supported: "wagered", "id" ("id" means internal user_id).
298
+ string direction = 2; // Supported: "asc", "desc".
299
+ }
300
+
295
301
  // Affiliate Data API
296
302
  // Global aggregation, filtering, and sorting occur before pagination.
297
303
  message GetAffiliateWageredPlayersRequest {
@@ -300,9 +306,10 @@ message GetAffiliateWageredPlayersRequest {
300
306
  string date_end = 3; // UTC "YYYY-MM-DD HH:MM:SS"; half-open interval [date_start, date_end).
301
307
  int32 limit = 4;
302
308
  int32 offset = 5;
303
- optional string order = 6; // Implementation-defined; supports deterministic wagered asc/desc ordering.
309
+ optional string order = 6; // Legacy single-field sort; prefer order_by. Implementation-defined; supports deterministic wagered asc/desc ordering.
304
310
  optional string wagered_min = 7; // Brand base currency filter; applied before pagination.
305
311
  optional string wagered_max = 8; // Brand base currency filter; applied before pagination.
312
+ repeated AffiliateWageredSortItem order_by = 9; // Takes precedence over legacy order when present. Duplicate sort fields are invalid. Deterministic tie-breaking may still be applied by analytic-service when required.
306
313
  }
307
314
  message AffiliateWageredPlayerItem {
308
315
  int32 user_id = 1;
@@ -22,6 +22,7 @@ var global = (function() {
22
22
  }.call(null));
23
23
 
24
24
  goog.exportSymbol('proto.analytic.AffiliateWageredPlayerItem', null, global);
25
+ goog.exportSymbol('proto.analytic.AffiliateWageredSortItem', null, global);
25
26
  goog.exportSymbol('proto.analytic.DashboardRequest', null, global);
26
27
  goog.exportSymbol('proto.analytic.DashboardResponse', null, global);
27
28
  goog.exportSymbol('proto.analytic.DashboardTurnoverSeries', null, global);
@@ -606,9 +607,30 @@ if (goog.DEBUG && !COMPILED) {
606
607
  * @extends {jspb.Message}
607
608
  * @constructor
608
609
  */
609
- proto.analytic.GetAffiliateWageredPlayersRequest = function(opt_data) {
610
+ proto.analytic.AffiliateWageredSortItem = function(opt_data) {
610
611
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
611
612
  };
613
+ goog.inherits(proto.analytic.AffiliateWageredSortItem, jspb.Message);
614
+ if (goog.DEBUG && !COMPILED) {
615
+ /**
616
+ * @public
617
+ * @override
618
+ */
619
+ proto.analytic.AffiliateWageredSortItem.displayName = 'proto.analytic.AffiliateWageredSortItem';
620
+ }
621
+ /**
622
+ * Generated by JsPbCodeGenerator.
623
+ * @param {Array=} opt_data Optional initial data array, typically from a
624
+ * server response, or constructed directly in Javascript. The array is used
625
+ * in place and becomes part of the constructed object. It is not cloned.
626
+ * If no data is provided, the constructed object will be empty, but still
627
+ * valid.
628
+ * @extends {jspb.Message}
629
+ * @constructor
630
+ */
631
+ proto.analytic.GetAffiliateWageredPlayersRequest = function(opt_data) {
632
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.analytic.GetAffiliateWageredPlayersRequest.repeatedFields_, null);
633
+ };
612
634
  goog.inherits(proto.analytic.GetAffiliateWageredPlayersRequest, jspb.Message);
613
635
  if (goog.DEBUG && !COMPILED) {
614
636
  /**
@@ -11371,6 +11393,173 @@ proto.analytic.ScaleoActivityBucketItem.prototype.setCurrency = function(value)
11371
11393
 
11372
11394
 
11373
11395
 
11396
+ if (jspb.Message.GENERATE_TO_OBJECT) {
11397
+ /**
11398
+ * Creates an object representation of this proto.
11399
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
11400
+ * Optional fields that are not set will be set to undefined.
11401
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
11402
+ * For the list of reserved names please see:
11403
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
11404
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
11405
+ * JSPB instance for transitional soy proto support:
11406
+ * http://goto/soy-param-migration
11407
+ * @return {!Object}
11408
+ */
11409
+ proto.analytic.AffiliateWageredSortItem.prototype.toObject = function(opt_includeInstance) {
11410
+ return proto.analytic.AffiliateWageredSortItem.toObject(opt_includeInstance, this);
11411
+ };
11412
+
11413
+
11414
+ /**
11415
+ * Static version of the {@see toObject} method.
11416
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
11417
+ * the JSPB instance for transitional soy proto support:
11418
+ * http://goto/soy-param-migration
11419
+ * @param {!proto.analytic.AffiliateWageredSortItem} msg The msg instance to transform.
11420
+ * @return {!Object}
11421
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11422
+ */
11423
+ proto.analytic.AffiliateWageredSortItem.toObject = function(includeInstance, msg) {
11424
+ var f, obj = {
11425
+ field: jspb.Message.getFieldWithDefault(msg, 1, ""),
11426
+ direction: jspb.Message.getFieldWithDefault(msg, 2, "")
11427
+ };
11428
+
11429
+ if (includeInstance) {
11430
+ obj.$jspbMessageInstance = msg;
11431
+ }
11432
+ return obj;
11433
+ };
11434
+ }
11435
+
11436
+
11437
+ /**
11438
+ * Deserializes binary data (in protobuf wire format).
11439
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
11440
+ * @return {!proto.analytic.AffiliateWageredSortItem}
11441
+ */
11442
+ proto.analytic.AffiliateWageredSortItem.deserializeBinary = function(bytes) {
11443
+ var reader = new jspb.BinaryReader(bytes);
11444
+ var msg = new proto.analytic.AffiliateWageredSortItem;
11445
+ return proto.analytic.AffiliateWageredSortItem.deserializeBinaryFromReader(msg, reader);
11446
+ };
11447
+
11448
+
11449
+ /**
11450
+ * Deserializes binary data (in protobuf wire format) from the
11451
+ * given reader into the given message object.
11452
+ * @param {!proto.analytic.AffiliateWageredSortItem} msg The message object to deserialize into.
11453
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
11454
+ * @return {!proto.analytic.AffiliateWageredSortItem}
11455
+ */
11456
+ proto.analytic.AffiliateWageredSortItem.deserializeBinaryFromReader = function(msg, reader) {
11457
+ while (reader.nextField()) {
11458
+ if (reader.isEndGroup()) {
11459
+ break;
11460
+ }
11461
+ var field = reader.getFieldNumber();
11462
+ switch (field) {
11463
+ case 1:
11464
+ var value = /** @type {string} */ (reader.readString());
11465
+ msg.setField(value);
11466
+ break;
11467
+ case 2:
11468
+ var value = /** @type {string} */ (reader.readString());
11469
+ msg.setDirection(value);
11470
+ break;
11471
+ default:
11472
+ reader.skipField();
11473
+ break;
11474
+ }
11475
+ }
11476
+ return msg;
11477
+ };
11478
+
11479
+
11480
+ /**
11481
+ * Serializes the message to binary data (in protobuf wire format).
11482
+ * @return {!Uint8Array}
11483
+ */
11484
+ proto.analytic.AffiliateWageredSortItem.prototype.serializeBinary = function() {
11485
+ var writer = new jspb.BinaryWriter();
11486
+ proto.analytic.AffiliateWageredSortItem.serializeBinaryToWriter(this, writer);
11487
+ return writer.getResultBuffer();
11488
+ };
11489
+
11490
+
11491
+ /**
11492
+ * Serializes the given message to binary data (in protobuf wire
11493
+ * format), writing to the given BinaryWriter.
11494
+ * @param {!proto.analytic.AffiliateWageredSortItem} message
11495
+ * @param {!jspb.BinaryWriter} writer
11496
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11497
+ */
11498
+ proto.analytic.AffiliateWageredSortItem.serializeBinaryToWriter = function(message, writer) {
11499
+ var f = undefined;
11500
+ f = message.getField();
11501
+ if (f.length > 0) {
11502
+ writer.writeString(
11503
+ 1,
11504
+ f
11505
+ );
11506
+ }
11507
+ f = message.getDirection();
11508
+ if (f.length > 0) {
11509
+ writer.writeString(
11510
+ 2,
11511
+ f
11512
+ );
11513
+ }
11514
+ };
11515
+
11516
+
11517
+ /**
11518
+ * optional string field = 1;
11519
+ * @return {string}
11520
+ */
11521
+ proto.analytic.AffiliateWageredSortItem.prototype.getField = function() {
11522
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
11523
+ };
11524
+
11525
+
11526
+ /**
11527
+ * @param {string} value
11528
+ * @return {!proto.analytic.AffiliateWageredSortItem} returns this
11529
+ */
11530
+ proto.analytic.AffiliateWageredSortItem.prototype.setField = function(value) {
11531
+ return jspb.Message.setProto3StringField(this, 1, value);
11532
+ };
11533
+
11534
+
11535
+ /**
11536
+ * optional string direction = 2;
11537
+ * @return {string}
11538
+ */
11539
+ proto.analytic.AffiliateWageredSortItem.prototype.getDirection = function() {
11540
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
11541
+ };
11542
+
11543
+
11544
+ /**
11545
+ * @param {string} value
11546
+ * @return {!proto.analytic.AffiliateWageredSortItem} returns this
11547
+ */
11548
+ proto.analytic.AffiliateWageredSortItem.prototype.setDirection = function(value) {
11549
+ return jspb.Message.setProto3StringField(this, 2, value);
11550
+ };
11551
+
11552
+
11553
+
11554
+ /**
11555
+ * List of repeated fields within this message type.
11556
+ * @private {!Array<number>}
11557
+ * @const
11558
+ */
11559
+ proto.analytic.GetAffiliateWageredPlayersRequest.repeatedFields_ = [9];
11560
+
11561
+
11562
+
11374
11563
  if (jspb.Message.GENERATE_TO_OBJECT) {
11375
11564
  /**
11376
11565
  * Creates an object representation of this proto.
@@ -11407,7 +11596,9 @@ proto.analytic.GetAffiliateWageredPlayersRequest.toObject = function(includeInst
11407
11596
  offset: jspb.Message.getFieldWithDefault(msg, 5, 0),
11408
11597
  order: jspb.Message.getFieldWithDefault(msg, 6, ""),
11409
11598
  wageredMin: jspb.Message.getFieldWithDefault(msg, 7, ""),
11410
- wageredMax: jspb.Message.getFieldWithDefault(msg, 8, "")
11599
+ wageredMax: jspb.Message.getFieldWithDefault(msg, 8, ""),
11600
+ orderByList: jspb.Message.toObjectList(msg.getOrderByList(),
11601
+ proto.analytic.AffiliateWageredSortItem.toObject, includeInstance)
11411
11602
  };
11412
11603
 
11413
11604
  if (includeInstance) {
@@ -11476,6 +11667,11 @@ proto.analytic.GetAffiliateWageredPlayersRequest.deserializeBinaryFromReader = f
11476
11667
  var value = /** @type {string} */ (reader.readString());
11477
11668
  msg.setWageredMax(value);
11478
11669
  break;
11670
+ case 9:
11671
+ var value = new proto.analytic.AffiliateWageredSortItem;
11672
+ reader.readMessage(value,proto.analytic.AffiliateWageredSortItem.deserializeBinaryFromReader);
11673
+ msg.addOrderBy(value);
11674
+ break;
11479
11675
  default:
11480
11676
  reader.skipField();
11481
11677
  break;
@@ -11561,6 +11757,14 @@ proto.analytic.GetAffiliateWageredPlayersRequest.serializeBinaryToWriter = funct
11561
11757
  f
11562
11758
  );
11563
11759
  }
11760
+ f = message.getOrderByList();
11761
+ if (f.length > 0) {
11762
+ writer.writeRepeatedMessage(
11763
+ 9,
11764
+ f,
11765
+ proto.analytic.AffiliateWageredSortItem.serializeBinaryToWriter
11766
+ );
11767
+ }
11564
11768
  };
11565
11769
 
11566
11770
 
@@ -11762,6 +11966,44 @@ proto.analytic.GetAffiliateWageredPlayersRequest.prototype.hasWageredMax = funct
11762
11966
  };
11763
11967
 
11764
11968
 
11969
+ /**
11970
+ * repeated AffiliateWageredSortItem order_by = 9;
11971
+ * @return {!Array<!proto.analytic.AffiliateWageredSortItem>}
11972
+ */
11973
+ proto.analytic.GetAffiliateWageredPlayersRequest.prototype.getOrderByList = function() {
11974
+ return /** @type{!Array<!proto.analytic.AffiliateWageredSortItem>} */ (
11975
+ jspb.Message.getRepeatedWrapperField(this, proto.analytic.AffiliateWageredSortItem, 9));
11976
+ };
11977
+
11978
+
11979
+ /**
11980
+ * @param {!Array<!proto.analytic.AffiliateWageredSortItem>} value
11981
+ * @return {!proto.analytic.GetAffiliateWageredPlayersRequest} returns this
11982
+ */
11983
+ proto.analytic.GetAffiliateWageredPlayersRequest.prototype.setOrderByList = function(value) {
11984
+ return jspb.Message.setRepeatedWrapperField(this, 9, value);
11985
+ };
11986
+
11987
+
11988
+ /**
11989
+ * @param {!proto.analytic.AffiliateWageredSortItem=} opt_value
11990
+ * @param {number=} opt_index
11991
+ * @return {!proto.analytic.AffiliateWageredSortItem}
11992
+ */
11993
+ proto.analytic.GetAffiliateWageredPlayersRequest.prototype.addOrderBy = function(opt_value, opt_index) {
11994
+ return jspb.Message.addToRepeatedWrapperField(this, 9, opt_value, proto.analytic.AffiliateWageredSortItem, opt_index);
11995
+ };
11996
+
11997
+
11998
+ /**
11999
+ * Clears the list making it empty but non-null.
12000
+ * @return {!proto.analytic.GetAffiliateWageredPlayersRequest} returns this
12001
+ */
12002
+ proto.analytic.GetAffiliateWageredPlayersRequest.prototype.clearOrderByList = function() {
12003
+ return this.setOrderByList([]);
12004
+ };
12005
+
12006
+
11765
12007
 
11766
12008
 
11767
12009
 
@@ -166,6 +166,7 @@ message CurrencyRateItem {
166
166
  optional bool is_manual = 10;
167
167
  optional string status = 11;
168
168
  optional string error_code = 12;
169
+ optional string rate_decimal = 13;
169
170
  }
170
171
 
171
172
  message CurrenciesRatesResponse {
@@ -5855,7 +5855,8 @@ proto.config.CurrencyRateItem.toObject = function(includeInstance, msg) {
5855
5855
  validUntil: jspb.Message.getFieldWithDefault(msg, 9, ""),
5856
5856
  isManual: jspb.Message.getBooleanFieldWithDefault(msg, 10, false),
5857
5857
  status: jspb.Message.getFieldWithDefault(msg, 11, ""),
5858
- errorCode: jspb.Message.getFieldWithDefault(msg, 12, "")
5858
+ errorCode: jspb.Message.getFieldWithDefault(msg, 12, ""),
5859
+ rateDecimal: jspb.Message.getFieldWithDefault(msg, 13, "")
5859
5860
  };
5860
5861
 
5861
5862
  if (includeInstance) {
@@ -5940,6 +5941,10 @@ proto.config.CurrencyRateItem.deserializeBinaryFromReader = function(msg, reader
5940
5941
  var value = /** @type {string} */ (reader.readString());
5941
5942
  msg.setErrorCode(value);
5942
5943
  break;
5944
+ case 13:
5945
+ var value = /** @type {string} */ (reader.readString());
5946
+ msg.setRateDecimal(value);
5947
+ break;
5943
5948
  default:
5944
5949
  reader.skipField();
5945
5950
  break;
@@ -6053,6 +6058,13 @@ proto.config.CurrencyRateItem.serializeBinaryToWriter = function(message, writer
6053
6058
  f
6054
6059
  );
6055
6060
  }
6061
+ f = /** @type {string} */ (jspb.Message.getField(message, 13));
6062
+ if (f != null) {
6063
+ writer.writeString(
6064
+ 13,
6065
+ f
6066
+ );
6067
+ }
6056
6068
  };
6057
6069
 
6058
6070
 
@@ -6434,6 +6446,42 @@ proto.config.CurrencyRateItem.prototype.hasErrorCode = function() {
6434
6446
  };
6435
6447
 
6436
6448
 
6449
+ /**
6450
+ * optional string rate_decimal = 13;
6451
+ * @return {string}
6452
+ */
6453
+ proto.config.CurrencyRateItem.prototype.getRateDecimal = function() {
6454
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
6455
+ };
6456
+
6457
+
6458
+ /**
6459
+ * @param {string} value
6460
+ * @return {!proto.config.CurrencyRateItem} returns this
6461
+ */
6462
+ proto.config.CurrencyRateItem.prototype.setRateDecimal = function(value) {
6463
+ return jspb.Message.setField(this, 13, value);
6464
+ };
6465
+
6466
+
6467
+ /**
6468
+ * Clears the field making it undefined.
6469
+ * @return {!proto.config.CurrencyRateItem} returns this
6470
+ */
6471
+ proto.config.CurrencyRateItem.prototype.clearRateDecimal = function() {
6472
+ return jspb.Message.setField(this, 13, undefined);
6473
+ };
6474
+
6475
+
6476
+ /**
6477
+ * Returns whether this field is set.
6478
+ * @return {boolean}
6479
+ */
6480
+ proto.config.CurrencyRateItem.prototype.hasRateDecimal = function() {
6481
+ return jspb.Message.getField(this, 13) != null;
6482
+ };
6483
+
6484
+
6437
6485
 
6438
6486
  /**
6439
6487
  * List of repeated fields within this message type.
package/game/game.proto CHANGED
@@ -837,6 +837,8 @@ message InitGameSessionRequest {
837
837
  optional int32 user_bonus_id = 11;
838
838
  optional string user_session_id = 12;
839
839
  optional string user_ip = 13;
840
+ optional string wallet_currency = 14;
841
+ optional string game_currency = 15;
840
842
  }
841
843
  message InitGameSessionV2Request {
842
844
  int32 user_id = 1;
@@ -853,6 +855,8 @@ message InitGameSessionV2Request {
853
855
  optional string user_session_id = 12;
854
856
  optional string user_ip = 13;
855
857
  optional uint64 selected_tournament_id = 14;
858
+ optional string wallet_currency = 15;
859
+ optional string game_currency = 16;
856
860
  }
857
861
  message InitDemoGameSessionRequest {
858
862
  string game_slug = 1;
@@ -906,6 +910,16 @@ message GameConfigCheckResponse {
906
910
  repeated ActiveUserTournament tournaments = 10;
907
911
  optional bool has_demo = 11;
908
912
  }
913
+ message GameLaunchWalletContext {
914
+ string currency = 1;
915
+ int32 currency_scale = 2;
916
+ int64 balance_minor = 3;
917
+ string balance_major = 4;
918
+ }
919
+ message GameLaunchCurrencyContext {
920
+ string selected_currency = 1;
921
+ repeated string available_currencies = 2;
922
+ }
909
923
  message InitGameSessionResponse {
910
924
  string game_url = 1;
911
925
  optional string game_uuid = 2;
@@ -920,6 +934,8 @@ message InitGameSessionResponse {
920
934
  optional bool has_demo = 11;
921
935
  optional string launch_type = 12;
922
936
  optional string launch_html = 13;
937
+ optional GameLaunchWalletContext wallet = 14;
938
+ optional GameLaunchCurrencyContext game_currency = 15;
923
939
  }
924
940
  //Vendor
925
941
  message VendorActionRequest {