protobuf-platform 1.2.659 → 1.2.661
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/analytic/analytic.proto +5 -0
- package/analytic/analytic_pb.js +253 -2
- package/bet/bet.proto +13 -0
- package/bet/bet_grpc_pb.js +55 -0
- package/bet/bet_pb.js +605 -1
- package/game/game.proto +5 -0
- package/game/game_grpc_pb.js +22 -0
- package/game/game_pb.js +229 -2
- package/notification/notification.proto +9 -0
- package/notification/notification_grpc_pb.js +44 -0
- package/notification/notification_pb.js +390 -0
- package/package.json +1 -1
- package/payment/payment.proto +4 -0
- package/payment/payment_pb.js +101 -2
- package/scripts/verify-precision-rg-contract.js +41 -3
- package/user/user.proto +8 -0
- package/user/user_grpc_pb.js +33 -0
- package/user/user_pb.js +362 -0
|
@@ -21,6 +21,7 @@ var global = (function() {
|
|
|
21
21
|
return Function('return this')();
|
|
22
22
|
}.call(null));
|
|
23
23
|
|
|
24
|
+
goog.exportSymbol('proto.notification.AutoNotificationSegmentIdsResponse', null, global);
|
|
24
25
|
goog.exportSymbol('proto.notification.DeleteAllUserNotificationsRequest', null, global);
|
|
25
26
|
goog.exportSymbol('proto.notification.DeleteUserNotificationByIdRequest', null, global);
|
|
26
27
|
goog.exportSymbol('proto.notification.DispatchManualNotificationRequest', null, global);
|
|
@@ -62,6 +63,7 @@ goog.exportSymbol('proto.notification.PingRequest', null, global);
|
|
|
62
63
|
goog.exportSymbol('proto.notification.PongResponse', null, global);
|
|
63
64
|
goog.exportSymbol('proto.notification.ProcessGamixterBonusAwardedWebhookRequest', null, global);
|
|
64
65
|
goog.exportSymbol('proto.notification.ReadAllUserNotificationsRequest', null, global);
|
|
66
|
+
goog.exportSymbol('proto.notification.ReplaceAutoNotificationSegmentIdsRequest', null, global);
|
|
65
67
|
goog.exportSymbol('proto.notification.ResolveAffiliateByPromoCodeRequest', null, global);
|
|
66
68
|
goog.exportSymbol('proto.notification.ResolveAffiliateByPromoCodeResponse', null, global);
|
|
67
69
|
goog.exportSymbol('proto.notification.SendNotificationRequest', null, global);
|
|
@@ -365,6 +367,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
365
367
|
*/
|
|
366
368
|
proto.notification.DispatchManualNotificationRequest.displayName = 'proto.notification.DispatchManualNotificationRequest';
|
|
367
369
|
}
|
|
370
|
+
/**
|
|
371
|
+
* Generated by JsPbCodeGenerator.
|
|
372
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
373
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
374
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
375
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
376
|
+
* valid.
|
|
377
|
+
* @extends {jspb.Message}
|
|
378
|
+
* @constructor
|
|
379
|
+
*/
|
|
380
|
+
proto.notification.ReplaceAutoNotificationSegmentIdsRequest = function(opt_data) {
|
|
381
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.notification.ReplaceAutoNotificationSegmentIdsRequest.repeatedFields_, null);
|
|
382
|
+
};
|
|
383
|
+
goog.inherits(proto.notification.ReplaceAutoNotificationSegmentIdsRequest, jspb.Message);
|
|
384
|
+
if (goog.DEBUG && !COMPILED) {
|
|
385
|
+
/**
|
|
386
|
+
* @public
|
|
387
|
+
* @override
|
|
388
|
+
*/
|
|
389
|
+
proto.notification.ReplaceAutoNotificationSegmentIdsRequest.displayName = 'proto.notification.ReplaceAutoNotificationSegmentIdsRequest';
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
* Generated by JsPbCodeGenerator.
|
|
393
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
394
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
395
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
396
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
397
|
+
* valid.
|
|
398
|
+
* @extends {jspb.Message}
|
|
399
|
+
* @constructor
|
|
400
|
+
*/
|
|
401
|
+
proto.notification.AutoNotificationSegmentIdsResponse = function(opt_data) {
|
|
402
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.notification.AutoNotificationSegmentIdsResponse.repeatedFields_, null);
|
|
403
|
+
};
|
|
404
|
+
goog.inherits(proto.notification.AutoNotificationSegmentIdsResponse, jspb.Message);
|
|
405
|
+
if (goog.DEBUG && !COMPILED) {
|
|
406
|
+
/**
|
|
407
|
+
* @public
|
|
408
|
+
* @override
|
|
409
|
+
*/
|
|
410
|
+
proto.notification.AutoNotificationSegmentIdsResponse.displayName = 'proto.notification.AutoNotificationSegmentIdsResponse';
|
|
411
|
+
}
|
|
368
412
|
/**
|
|
369
413
|
* Generated by JsPbCodeGenerator.
|
|
370
414
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -4902,6 +4946,352 @@ proto.notification.DispatchManualNotificationRequest.prototype.clearSegmentIdsLi
|
|
|
4902
4946
|
|
|
4903
4947
|
|
|
4904
4948
|
|
|
4949
|
+
/**
|
|
4950
|
+
* List of repeated fields within this message type.
|
|
4951
|
+
* @private {!Array<number>}
|
|
4952
|
+
* @const
|
|
4953
|
+
*/
|
|
4954
|
+
proto.notification.ReplaceAutoNotificationSegmentIdsRequest.repeatedFields_ = [2];
|
|
4955
|
+
|
|
4956
|
+
|
|
4957
|
+
|
|
4958
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4959
|
+
/**
|
|
4960
|
+
* Creates an object representation of this proto.
|
|
4961
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4962
|
+
* Optional fields that are not set will be set to undefined.
|
|
4963
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4964
|
+
* For the list of reserved names please see:
|
|
4965
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4966
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4967
|
+
* JSPB instance for transitional soy proto support:
|
|
4968
|
+
* http://goto/soy-param-migration
|
|
4969
|
+
* @return {!Object}
|
|
4970
|
+
*/
|
|
4971
|
+
proto.notification.ReplaceAutoNotificationSegmentIdsRequest.prototype.toObject = function(opt_includeInstance) {
|
|
4972
|
+
return proto.notification.ReplaceAutoNotificationSegmentIdsRequest.toObject(opt_includeInstance, this);
|
|
4973
|
+
};
|
|
4974
|
+
|
|
4975
|
+
|
|
4976
|
+
/**
|
|
4977
|
+
* Static version of the {@see toObject} method.
|
|
4978
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4979
|
+
* the JSPB instance for transitional soy proto support:
|
|
4980
|
+
* http://goto/soy-param-migration
|
|
4981
|
+
* @param {!proto.notification.ReplaceAutoNotificationSegmentIdsRequest} msg The msg instance to transform.
|
|
4982
|
+
* @return {!Object}
|
|
4983
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4984
|
+
*/
|
|
4985
|
+
proto.notification.ReplaceAutoNotificationSegmentIdsRequest.toObject = function(includeInstance, msg) {
|
|
4986
|
+
var f, obj = {
|
|
4987
|
+
notificationId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
4988
|
+
segmentIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
|
|
4989
|
+
};
|
|
4990
|
+
|
|
4991
|
+
if (includeInstance) {
|
|
4992
|
+
obj.$jspbMessageInstance = msg;
|
|
4993
|
+
}
|
|
4994
|
+
return obj;
|
|
4995
|
+
};
|
|
4996
|
+
}
|
|
4997
|
+
|
|
4998
|
+
|
|
4999
|
+
/**
|
|
5000
|
+
* Deserializes binary data (in protobuf wire format).
|
|
5001
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
5002
|
+
* @return {!proto.notification.ReplaceAutoNotificationSegmentIdsRequest}
|
|
5003
|
+
*/
|
|
5004
|
+
proto.notification.ReplaceAutoNotificationSegmentIdsRequest.deserializeBinary = function(bytes) {
|
|
5005
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
5006
|
+
var msg = new proto.notification.ReplaceAutoNotificationSegmentIdsRequest;
|
|
5007
|
+
return proto.notification.ReplaceAutoNotificationSegmentIdsRequest.deserializeBinaryFromReader(msg, reader);
|
|
5008
|
+
};
|
|
5009
|
+
|
|
5010
|
+
|
|
5011
|
+
/**
|
|
5012
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
5013
|
+
* given reader into the given message object.
|
|
5014
|
+
* @param {!proto.notification.ReplaceAutoNotificationSegmentIdsRequest} msg The message object to deserialize into.
|
|
5015
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
5016
|
+
* @return {!proto.notification.ReplaceAutoNotificationSegmentIdsRequest}
|
|
5017
|
+
*/
|
|
5018
|
+
proto.notification.ReplaceAutoNotificationSegmentIdsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
5019
|
+
while (reader.nextField()) {
|
|
5020
|
+
if (reader.isEndGroup()) {
|
|
5021
|
+
break;
|
|
5022
|
+
}
|
|
5023
|
+
var field = reader.getFieldNumber();
|
|
5024
|
+
switch (field) {
|
|
5025
|
+
case 1:
|
|
5026
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
5027
|
+
msg.setNotificationId(value);
|
|
5028
|
+
break;
|
|
5029
|
+
case 2:
|
|
5030
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
|
|
5031
|
+
for (var i = 0; i < values.length; i++) {
|
|
5032
|
+
msg.addSegmentIds(values[i]);
|
|
5033
|
+
}
|
|
5034
|
+
break;
|
|
5035
|
+
default:
|
|
5036
|
+
reader.skipField();
|
|
5037
|
+
break;
|
|
5038
|
+
}
|
|
5039
|
+
}
|
|
5040
|
+
return msg;
|
|
5041
|
+
};
|
|
5042
|
+
|
|
5043
|
+
|
|
5044
|
+
/**
|
|
5045
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
5046
|
+
* @return {!Uint8Array}
|
|
5047
|
+
*/
|
|
5048
|
+
proto.notification.ReplaceAutoNotificationSegmentIdsRequest.prototype.serializeBinary = function() {
|
|
5049
|
+
var writer = new jspb.BinaryWriter();
|
|
5050
|
+
proto.notification.ReplaceAutoNotificationSegmentIdsRequest.serializeBinaryToWriter(this, writer);
|
|
5051
|
+
return writer.getResultBuffer();
|
|
5052
|
+
};
|
|
5053
|
+
|
|
5054
|
+
|
|
5055
|
+
/**
|
|
5056
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
5057
|
+
* format), writing to the given BinaryWriter.
|
|
5058
|
+
* @param {!proto.notification.ReplaceAutoNotificationSegmentIdsRequest} message
|
|
5059
|
+
* @param {!jspb.BinaryWriter} writer
|
|
5060
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5061
|
+
*/
|
|
5062
|
+
proto.notification.ReplaceAutoNotificationSegmentIdsRequest.serializeBinaryToWriter = function(message, writer) {
|
|
5063
|
+
var f = undefined;
|
|
5064
|
+
f = message.getNotificationId();
|
|
5065
|
+
if (f !== 0) {
|
|
5066
|
+
writer.writeInt32(
|
|
5067
|
+
1,
|
|
5068
|
+
f
|
|
5069
|
+
);
|
|
5070
|
+
}
|
|
5071
|
+
f = message.getSegmentIdsList();
|
|
5072
|
+
if (f.length > 0) {
|
|
5073
|
+
writer.writePackedInt32(
|
|
5074
|
+
2,
|
|
5075
|
+
f
|
|
5076
|
+
);
|
|
5077
|
+
}
|
|
5078
|
+
};
|
|
5079
|
+
|
|
5080
|
+
|
|
5081
|
+
/**
|
|
5082
|
+
* optional int32 notification_id = 1;
|
|
5083
|
+
* @return {number}
|
|
5084
|
+
*/
|
|
5085
|
+
proto.notification.ReplaceAutoNotificationSegmentIdsRequest.prototype.getNotificationId = function() {
|
|
5086
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
5087
|
+
};
|
|
5088
|
+
|
|
5089
|
+
|
|
5090
|
+
/**
|
|
5091
|
+
* @param {number} value
|
|
5092
|
+
* @return {!proto.notification.ReplaceAutoNotificationSegmentIdsRequest} returns this
|
|
5093
|
+
*/
|
|
5094
|
+
proto.notification.ReplaceAutoNotificationSegmentIdsRequest.prototype.setNotificationId = function(value) {
|
|
5095
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
5096
|
+
};
|
|
5097
|
+
|
|
5098
|
+
|
|
5099
|
+
/**
|
|
5100
|
+
* repeated int32 segment_ids = 2;
|
|
5101
|
+
* @return {!Array<number>}
|
|
5102
|
+
*/
|
|
5103
|
+
proto.notification.ReplaceAutoNotificationSegmentIdsRequest.prototype.getSegmentIdsList = function() {
|
|
5104
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 2));
|
|
5105
|
+
};
|
|
5106
|
+
|
|
5107
|
+
|
|
5108
|
+
/**
|
|
5109
|
+
* @param {!Array<number>} value
|
|
5110
|
+
* @return {!proto.notification.ReplaceAutoNotificationSegmentIdsRequest} returns this
|
|
5111
|
+
*/
|
|
5112
|
+
proto.notification.ReplaceAutoNotificationSegmentIdsRequest.prototype.setSegmentIdsList = function(value) {
|
|
5113
|
+
return jspb.Message.setField(this, 2, value || []);
|
|
5114
|
+
};
|
|
5115
|
+
|
|
5116
|
+
|
|
5117
|
+
/**
|
|
5118
|
+
* @param {number} value
|
|
5119
|
+
* @param {number=} opt_index
|
|
5120
|
+
* @return {!proto.notification.ReplaceAutoNotificationSegmentIdsRequest} returns this
|
|
5121
|
+
*/
|
|
5122
|
+
proto.notification.ReplaceAutoNotificationSegmentIdsRequest.prototype.addSegmentIds = function(value, opt_index) {
|
|
5123
|
+
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
|
5124
|
+
};
|
|
5125
|
+
|
|
5126
|
+
|
|
5127
|
+
/**
|
|
5128
|
+
* Clears the list making it empty but non-null.
|
|
5129
|
+
* @return {!proto.notification.ReplaceAutoNotificationSegmentIdsRequest} returns this
|
|
5130
|
+
*/
|
|
5131
|
+
proto.notification.ReplaceAutoNotificationSegmentIdsRequest.prototype.clearSegmentIdsList = function() {
|
|
5132
|
+
return this.setSegmentIdsList([]);
|
|
5133
|
+
};
|
|
5134
|
+
|
|
5135
|
+
|
|
5136
|
+
|
|
5137
|
+
/**
|
|
5138
|
+
* List of repeated fields within this message type.
|
|
5139
|
+
* @private {!Array<number>}
|
|
5140
|
+
* @const
|
|
5141
|
+
*/
|
|
5142
|
+
proto.notification.AutoNotificationSegmentIdsResponse.repeatedFields_ = [1];
|
|
5143
|
+
|
|
5144
|
+
|
|
5145
|
+
|
|
5146
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5147
|
+
/**
|
|
5148
|
+
* Creates an object representation of this proto.
|
|
5149
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
5150
|
+
* Optional fields that are not set will be set to undefined.
|
|
5151
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
5152
|
+
* For the list of reserved names please see:
|
|
5153
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
5154
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
5155
|
+
* JSPB instance for transitional soy proto support:
|
|
5156
|
+
* http://goto/soy-param-migration
|
|
5157
|
+
* @return {!Object}
|
|
5158
|
+
*/
|
|
5159
|
+
proto.notification.AutoNotificationSegmentIdsResponse.prototype.toObject = function(opt_includeInstance) {
|
|
5160
|
+
return proto.notification.AutoNotificationSegmentIdsResponse.toObject(opt_includeInstance, this);
|
|
5161
|
+
};
|
|
5162
|
+
|
|
5163
|
+
|
|
5164
|
+
/**
|
|
5165
|
+
* Static version of the {@see toObject} method.
|
|
5166
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
5167
|
+
* the JSPB instance for transitional soy proto support:
|
|
5168
|
+
* http://goto/soy-param-migration
|
|
5169
|
+
* @param {!proto.notification.AutoNotificationSegmentIdsResponse} msg The msg instance to transform.
|
|
5170
|
+
* @return {!Object}
|
|
5171
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5172
|
+
*/
|
|
5173
|
+
proto.notification.AutoNotificationSegmentIdsResponse.toObject = function(includeInstance, msg) {
|
|
5174
|
+
var f, obj = {
|
|
5175
|
+
segmentIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
|
|
5176
|
+
};
|
|
5177
|
+
|
|
5178
|
+
if (includeInstance) {
|
|
5179
|
+
obj.$jspbMessageInstance = msg;
|
|
5180
|
+
}
|
|
5181
|
+
return obj;
|
|
5182
|
+
};
|
|
5183
|
+
}
|
|
5184
|
+
|
|
5185
|
+
|
|
5186
|
+
/**
|
|
5187
|
+
* Deserializes binary data (in protobuf wire format).
|
|
5188
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
5189
|
+
* @return {!proto.notification.AutoNotificationSegmentIdsResponse}
|
|
5190
|
+
*/
|
|
5191
|
+
proto.notification.AutoNotificationSegmentIdsResponse.deserializeBinary = function(bytes) {
|
|
5192
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
5193
|
+
var msg = new proto.notification.AutoNotificationSegmentIdsResponse;
|
|
5194
|
+
return proto.notification.AutoNotificationSegmentIdsResponse.deserializeBinaryFromReader(msg, reader);
|
|
5195
|
+
};
|
|
5196
|
+
|
|
5197
|
+
|
|
5198
|
+
/**
|
|
5199
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
5200
|
+
* given reader into the given message object.
|
|
5201
|
+
* @param {!proto.notification.AutoNotificationSegmentIdsResponse} msg The message object to deserialize into.
|
|
5202
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
5203
|
+
* @return {!proto.notification.AutoNotificationSegmentIdsResponse}
|
|
5204
|
+
*/
|
|
5205
|
+
proto.notification.AutoNotificationSegmentIdsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
5206
|
+
while (reader.nextField()) {
|
|
5207
|
+
if (reader.isEndGroup()) {
|
|
5208
|
+
break;
|
|
5209
|
+
}
|
|
5210
|
+
var field = reader.getFieldNumber();
|
|
5211
|
+
switch (field) {
|
|
5212
|
+
case 1:
|
|
5213
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
|
|
5214
|
+
for (var i = 0; i < values.length; i++) {
|
|
5215
|
+
msg.addSegmentIds(values[i]);
|
|
5216
|
+
}
|
|
5217
|
+
break;
|
|
5218
|
+
default:
|
|
5219
|
+
reader.skipField();
|
|
5220
|
+
break;
|
|
5221
|
+
}
|
|
5222
|
+
}
|
|
5223
|
+
return msg;
|
|
5224
|
+
};
|
|
5225
|
+
|
|
5226
|
+
|
|
5227
|
+
/**
|
|
5228
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
5229
|
+
* @return {!Uint8Array}
|
|
5230
|
+
*/
|
|
5231
|
+
proto.notification.AutoNotificationSegmentIdsResponse.prototype.serializeBinary = function() {
|
|
5232
|
+
var writer = new jspb.BinaryWriter();
|
|
5233
|
+
proto.notification.AutoNotificationSegmentIdsResponse.serializeBinaryToWriter(this, writer);
|
|
5234
|
+
return writer.getResultBuffer();
|
|
5235
|
+
};
|
|
5236
|
+
|
|
5237
|
+
|
|
5238
|
+
/**
|
|
5239
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
5240
|
+
* format), writing to the given BinaryWriter.
|
|
5241
|
+
* @param {!proto.notification.AutoNotificationSegmentIdsResponse} message
|
|
5242
|
+
* @param {!jspb.BinaryWriter} writer
|
|
5243
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5244
|
+
*/
|
|
5245
|
+
proto.notification.AutoNotificationSegmentIdsResponse.serializeBinaryToWriter = function(message, writer) {
|
|
5246
|
+
var f = undefined;
|
|
5247
|
+
f = message.getSegmentIdsList();
|
|
5248
|
+
if (f.length > 0) {
|
|
5249
|
+
writer.writePackedInt32(
|
|
5250
|
+
1,
|
|
5251
|
+
f
|
|
5252
|
+
);
|
|
5253
|
+
}
|
|
5254
|
+
};
|
|
5255
|
+
|
|
5256
|
+
|
|
5257
|
+
/**
|
|
5258
|
+
* repeated int32 segment_ids = 1;
|
|
5259
|
+
* @return {!Array<number>}
|
|
5260
|
+
*/
|
|
5261
|
+
proto.notification.AutoNotificationSegmentIdsResponse.prototype.getSegmentIdsList = function() {
|
|
5262
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
5263
|
+
};
|
|
5264
|
+
|
|
5265
|
+
|
|
5266
|
+
/**
|
|
5267
|
+
* @param {!Array<number>} value
|
|
5268
|
+
* @return {!proto.notification.AutoNotificationSegmentIdsResponse} returns this
|
|
5269
|
+
*/
|
|
5270
|
+
proto.notification.AutoNotificationSegmentIdsResponse.prototype.setSegmentIdsList = function(value) {
|
|
5271
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
5272
|
+
};
|
|
5273
|
+
|
|
5274
|
+
|
|
5275
|
+
/**
|
|
5276
|
+
* @param {number} value
|
|
5277
|
+
* @param {number=} opt_index
|
|
5278
|
+
* @return {!proto.notification.AutoNotificationSegmentIdsResponse} returns this
|
|
5279
|
+
*/
|
|
5280
|
+
proto.notification.AutoNotificationSegmentIdsResponse.prototype.addSegmentIds = function(value, opt_index) {
|
|
5281
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
5282
|
+
};
|
|
5283
|
+
|
|
5284
|
+
|
|
5285
|
+
/**
|
|
5286
|
+
* Clears the list making it empty but non-null.
|
|
5287
|
+
* @return {!proto.notification.AutoNotificationSegmentIdsResponse} returns this
|
|
5288
|
+
*/
|
|
5289
|
+
proto.notification.AutoNotificationSegmentIdsResponse.prototype.clearSegmentIdsList = function() {
|
|
5290
|
+
return this.setSegmentIdsList([]);
|
|
5291
|
+
};
|
|
5292
|
+
|
|
5293
|
+
|
|
5294
|
+
|
|
4905
5295
|
|
|
4906
5296
|
|
|
4907
5297
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
package/package.json
CHANGED
package/payment/payment.proto
CHANGED
|
@@ -971,6 +971,7 @@ message SegmentedUserRequest {
|
|
|
971
971
|
optional string currency = 11;
|
|
972
972
|
repeated string payment_providers = 12;
|
|
973
973
|
repeated string payment_types = 13;
|
|
974
|
+
optional int32 user_id = 14;
|
|
974
975
|
}
|
|
975
976
|
message SegmentedUserResponse {
|
|
976
977
|
repeated int32 user_ids = 1;
|
|
@@ -1345,6 +1346,9 @@ message GameplayPrecisionPreparation {
|
|
|
1345
1346
|
string requested_debit_minor = 9;
|
|
1346
1347
|
repeated GameplayPrecisionAccountingLeg accounting_legs = 10;
|
|
1347
1348
|
bool requires_rg_admission = 11;
|
|
1349
|
+
// Immutable confirmed release evidence for the prior generation transition.
|
|
1350
|
+
// Replayed from payment command history; absent for generation 1.
|
|
1351
|
+
GameplayPrecisionRgEvidence previous_release = 12;
|
|
1348
1352
|
}
|
|
1349
1353
|
message PrepareGameplayPrecisionCommandRequest {
|
|
1350
1354
|
ExecuteGameplayPrecisionCommandRequest command = 1;
|
package/payment/payment_pb.js
CHANGED
|
@@ -40626,7 +40626,8 @@ proto.payment.SegmentedUserRequest.toObject = function(includeInstance, msg) {
|
|
|
40626
40626
|
depositAvgMax: jspb.Message.getFloatingPointFieldWithDefault(msg, 10, 0.0),
|
|
40627
40627
|
currency: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
|
40628
40628
|
paymentProvidersList: (f = jspb.Message.getRepeatedField(msg, 12)) == null ? undefined : f,
|
|
40629
|
-
paymentTypesList: (f = jspb.Message.getRepeatedField(msg, 13)) == null ? undefined : f
|
|
40629
|
+
paymentTypesList: (f = jspb.Message.getRepeatedField(msg, 13)) == null ? undefined : f,
|
|
40630
|
+
userId: jspb.Message.getFieldWithDefault(msg, 14, 0)
|
|
40630
40631
|
};
|
|
40631
40632
|
|
|
40632
40633
|
if (includeInstance) {
|
|
@@ -40715,6 +40716,10 @@ proto.payment.SegmentedUserRequest.deserializeBinaryFromReader = function(msg, r
|
|
|
40715
40716
|
var value = /** @type {string} */ (reader.readString());
|
|
40716
40717
|
msg.addPaymentTypes(value);
|
|
40717
40718
|
break;
|
|
40719
|
+
case 14:
|
|
40720
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
40721
|
+
msg.setUserId(value);
|
|
40722
|
+
break;
|
|
40718
40723
|
default:
|
|
40719
40724
|
reader.skipField();
|
|
40720
40725
|
break;
|
|
@@ -40835,6 +40840,13 @@ proto.payment.SegmentedUserRequest.serializeBinaryToWriter = function(message, w
|
|
|
40835
40840
|
f
|
|
40836
40841
|
);
|
|
40837
40842
|
}
|
|
40843
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 14));
|
|
40844
|
+
if (f != null) {
|
|
40845
|
+
writer.writeInt32(
|
|
40846
|
+
14,
|
|
40847
|
+
f
|
|
40848
|
+
);
|
|
40849
|
+
}
|
|
40838
40850
|
};
|
|
40839
40851
|
|
|
40840
40852
|
|
|
@@ -41308,6 +41320,42 @@ proto.payment.SegmentedUserRequest.prototype.clearPaymentTypesList = function()
|
|
|
41308
41320
|
};
|
|
41309
41321
|
|
|
41310
41322
|
|
|
41323
|
+
/**
|
|
41324
|
+
* optional int32 user_id = 14;
|
|
41325
|
+
* @return {number}
|
|
41326
|
+
*/
|
|
41327
|
+
proto.payment.SegmentedUserRequest.prototype.getUserId = function() {
|
|
41328
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0));
|
|
41329
|
+
};
|
|
41330
|
+
|
|
41331
|
+
|
|
41332
|
+
/**
|
|
41333
|
+
* @param {number} value
|
|
41334
|
+
* @return {!proto.payment.SegmentedUserRequest} returns this
|
|
41335
|
+
*/
|
|
41336
|
+
proto.payment.SegmentedUserRequest.prototype.setUserId = function(value) {
|
|
41337
|
+
return jspb.Message.setField(this, 14, value);
|
|
41338
|
+
};
|
|
41339
|
+
|
|
41340
|
+
|
|
41341
|
+
/**
|
|
41342
|
+
* Clears the field making it undefined.
|
|
41343
|
+
* @return {!proto.payment.SegmentedUserRequest} returns this
|
|
41344
|
+
*/
|
|
41345
|
+
proto.payment.SegmentedUserRequest.prototype.clearUserId = function() {
|
|
41346
|
+
return jspb.Message.setField(this, 14, undefined);
|
|
41347
|
+
};
|
|
41348
|
+
|
|
41349
|
+
|
|
41350
|
+
/**
|
|
41351
|
+
* Returns whether this field is set.
|
|
41352
|
+
* @return {boolean}
|
|
41353
|
+
*/
|
|
41354
|
+
proto.payment.SegmentedUserRequest.prototype.hasUserId = function() {
|
|
41355
|
+
return jspb.Message.getField(this, 14) != null;
|
|
41356
|
+
};
|
|
41357
|
+
|
|
41358
|
+
|
|
41311
41359
|
|
|
41312
41360
|
/**
|
|
41313
41361
|
* List of repeated fields within this message type.
|
|
@@ -55327,7 +55375,8 @@ proto.payment.GameplayPrecisionPreparation.toObject = function(includeInstance,
|
|
|
55327
55375
|
requestedDebitMinor: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
55328
55376
|
accountingLegsList: jspb.Message.toObjectList(msg.getAccountingLegsList(),
|
|
55329
55377
|
proto.payment.GameplayPrecisionAccountingLeg.toObject, includeInstance),
|
|
55330
|
-
requiresRgAdmission: jspb.Message.getBooleanFieldWithDefault(msg, 11, false)
|
|
55378
|
+
requiresRgAdmission: jspb.Message.getBooleanFieldWithDefault(msg, 11, false),
|
|
55379
|
+
previousRelease: (f = msg.getPreviousRelease()) && proto.payment.GameplayPrecisionRgEvidence.toObject(includeInstance, f)
|
|
55331
55380
|
};
|
|
55332
55381
|
|
|
55333
55382
|
if (includeInstance) {
|
|
@@ -55409,6 +55458,11 @@ proto.payment.GameplayPrecisionPreparation.deserializeBinaryFromReader = functio
|
|
|
55409
55458
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
55410
55459
|
msg.setRequiresRgAdmission(value);
|
|
55411
55460
|
break;
|
|
55461
|
+
case 12:
|
|
55462
|
+
var value = new proto.payment.GameplayPrecisionRgEvidence;
|
|
55463
|
+
reader.readMessage(value,proto.payment.GameplayPrecisionRgEvidence.deserializeBinaryFromReader);
|
|
55464
|
+
msg.setPreviousRelease(value);
|
|
55465
|
+
break;
|
|
55412
55466
|
default:
|
|
55413
55467
|
reader.skipField();
|
|
55414
55468
|
break;
|
|
@@ -55516,6 +55570,14 @@ proto.payment.GameplayPrecisionPreparation.serializeBinaryToWriter = function(me
|
|
|
55516
55570
|
f
|
|
55517
55571
|
);
|
|
55518
55572
|
}
|
|
55573
|
+
f = message.getPreviousRelease();
|
|
55574
|
+
if (f != null) {
|
|
55575
|
+
writer.writeMessage(
|
|
55576
|
+
12,
|
|
55577
|
+
f,
|
|
55578
|
+
proto.payment.GameplayPrecisionRgEvidence.serializeBinaryToWriter
|
|
55579
|
+
);
|
|
55580
|
+
}
|
|
55519
55581
|
};
|
|
55520
55582
|
|
|
55521
55583
|
|
|
@@ -55737,6 +55799,43 @@ proto.payment.GameplayPrecisionPreparation.prototype.setRequiresRgAdmission = fu
|
|
|
55737
55799
|
};
|
|
55738
55800
|
|
|
55739
55801
|
|
|
55802
|
+
/**
|
|
55803
|
+
* optional GameplayPrecisionRgEvidence previous_release = 12;
|
|
55804
|
+
* @return {?proto.payment.GameplayPrecisionRgEvidence}
|
|
55805
|
+
*/
|
|
55806
|
+
proto.payment.GameplayPrecisionPreparation.prototype.getPreviousRelease = function() {
|
|
55807
|
+
return /** @type{?proto.payment.GameplayPrecisionRgEvidence} */ (
|
|
55808
|
+
jspb.Message.getWrapperField(this, proto.payment.GameplayPrecisionRgEvidence, 12));
|
|
55809
|
+
};
|
|
55810
|
+
|
|
55811
|
+
|
|
55812
|
+
/**
|
|
55813
|
+
* @param {?proto.payment.GameplayPrecisionRgEvidence|undefined} value
|
|
55814
|
+
* @return {!proto.payment.GameplayPrecisionPreparation} returns this
|
|
55815
|
+
*/
|
|
55816
|
+
proto.payment.GameplayPrecisionPreparation.prototype.setPreviousRelease = function(value) {
|
|
55817
|
+
return jspb.Message.setWrapperField(this, 12, value);
|
|
55818
|
+
};
|
|
55819
|
+
|
|
55820
|
+
|
|
55821
|
+
/**
|
|
55822
|
+
* Clears the message field making it undefined.
|
|
55823
|
+
* @return {!proto.payment.GameplayPrecisionPreparation} returns this
|
|
55824
|
+
*/
|
|
55825
|
+
proto.payment.GameplayPrecisionPreparation.prototype.clearPreviousRelease = function() {
|
|
55826
|
+
return this.setPreviousRelease(undefined);
|
|
55827
|
+
};
|
|
55828
|
+
|
|
55829
|
+
|
|
55830
|
+
/**
|
|
55831
|
+
* Returns whether this field is set.
|
|
55832
|
+
* @return {boolean}
|
|
55833
|
+
*/
|
|
55834
|
+
proto.payment.GameplayPrecisionPreparation.prototype.hasPreviousRelease = function() {
|
|
55835
|
+
return jspb.Message.getField(this, 12) != null;
|
|
55836
|
+
};
|
|
55837
|
+
|
|
55838
|
+
|
|
55740
55839
|
|
|
55741
55840
|
|
|
55742
55841
|
|
|
@@ -7,7 +7,7 @@ const path = require('node:path');
|
|
|
7
7
|
const vm = require('node:vm');
|
|
8
8
|
const { execFileSync } = require('node:child_process');
|
|
9
9
|
const root = path.resolve(__dirname, '..');
|
|
10
|
-
const baseline = '
|
|
10
|
+
const baseline = '02f4a91c0709f9d3b91e5c22a65820318bdd6e04';
|
|
11
11
|
const readOld = (file) => execFileSync('git', ['show', `${baseline}:${file}`], { cwd: root, encoding: 'utf8', maxBuffer: 16 * 1024 * 1024 });
|
|
12
12
|
const normalize = (text) => text.replace(/\/\/[^\n]*/g, '').replace(/\s+/g, ' ').trim();
|
|
13
13
|
function declarations(source) {
|
|
@@ -28,8 +28,7 @@ function declarations(source) {
|
|
|
28
28
|
return out;
|
|
29
29
|
}
|
|
30
30
|
const additions = {
|
|
31
|
-
|
|
32
|
-
GameplayPrecisionResult: 'repeated GameplayPrecisionAccountingLeg accounting_legs = 17; string preparation_generation = 18; string preparation_fingerprint = 19; string command_key = 20; string request_fingerprint = 21;',
|
|
31
|
+
GameplayPrecisionPreparation: 'GameplayPrecisionRgEvidence previous_release = 12;',
|
|
33
32
|
};
|
|
34
33
|
let preserved = 0;
|
|
35
34
|
for (const domain of ['user', 'payment']) {
|
|
@@ -178,3 +177,42 @@ const exported = require('../index');
|
|
|
178
177
|
assert.equal(exported.user.messages.PrecisionRgBinding, user.PrecisionRgBinding);
|
|
179
178
|
assert.equal(exported.payment.messages.GameplayPrecisionPreparation, payment.GameplayPrecisionPreparation);
|
|
180
179
|
console.log('PASS: generated gRPC paths/types and package exports');
|
|
180
|
+
|
|
181
|
+
// Version 1.2.659 readers ignore the new recovery field; new readers recognize its absence.
|
|
182
|
+
const original = new oldPayment.GameplayPrecisionPreparation();
|
|
183
|
+
original.setGeneration('1');
|
|
184
|
+
original.setFingerprint('initial-preparation');
|
|
185
|
+
const initial = payment.GameplayPrecisionPreparation.deserializeBinary(original.serializeBinary());
|
|
186
|
+
assert.equal(initial.hasPreviousRelease(), false);
|
|
187
|
+
const prior = new payment.GameplayPrecisionRgEvidence();
|
|
188
|
+
prior.setCommandKey('same-financial-command');
|
|
189
|
+
prior.setRequestFingerprint('same-immutable-request');
|
|
190
|
+
prior.setPreparationGeneration('1');
|
|
191
|
+
prior.setPreparationFingerprint('prior-preparation');
|
|
192
|
+
prior.setAccountingCurrency('USD');
|
|
193
|
+
prior.setAccountingScale(2);
|
|
194
|
+
prior.setRequestedDebitMinor('151');
|
|
195
|
+
prior.setState('RELEASED');
|
|
196
|
+
prior.setReceiptId('confirmed-release-receipt');
|
|
197
|
+
const next = new payment.GameplayPrecisionPreparation();
|
|
198
|
+
next.setGeneration('2');
|
|
199
|
+
next.setFingerprint('new-preparation');
|
|
200
|
+
next.setCommandKey(prior.getCommandKey());
|
|
201
|
+
next.setRequestFingerprint(prior.getRequestFingerprint());
|
|
202
|
+
next.setRequestedDebitMinor('152');
|
|
203
|
+
next.setPreviousRelease(prior);
|
|
204
|
+
const resumed = new payment.PrepareGameplayPrecisionCommandResponse();
|
|
205
|
+
resumed.setStatus('PREPARED');
|
|
206
|
+
resumed.setPreparation(next);
|
|
207
|
+
const replayWire = resumed.serializeBinary();
|
|
208
|
+
const restarted = payment.PrepareGameplayPrecisionCommandResponse.deserializeBinary(replayWire);
|
|
209
|
+
assert.deepEqual(restarted.getPreparation().getPreviousRelease().toObject(), prior.toObject());
|
|
210
|
+
assert.equal(restarted.getPreparation().getGeneration(), '2');
|
|
211
|
+
assert.equal(restarted.getPreparation().getRequestedDebitMinor(), '152');
|
|
212
|
+
assert.equal(restarted.getPreparation().getPreviousRelease().getRequestedDebitMinor(), '151');
|
|
213
|
+
assert.deepEqual(Buffer.from(restarted.serializeBinary()), Buffer.from(replayWire));
|
|
214
|
+
const legacyNext = oldPayment.GameplayPrecisionPreparation.deserializeBinary(next.serializeBinary());
|
|
215
|
+
assert.equal(legacyNext.getGeneration(), '2');
|
|
216
|
+
assert.equal(legacyNext.getRequestedDebitMinor(), '152');
|
|
217
|
+
assert.equal(typeof legacyNext.getPreviousRelease, 'undefined');
|
|
218
|
+
console.log('PASS: field 12 recovery evidence round-trip, prior/current binding separation, absent generation-1 evidence, 1.2.659 reader compatibility');
|
package/user/user.proto
CHANGED
|
@@ -63,6 +63,7 @@ service User {
|
|
|
63
63
|
rpc getSegmentRule(GetSegmentRuleRequest) returns (SegmentRuleItem);
|
|
64
64
|
rpc getSegmentsForParticularUser(GetSegmentRequest) returns (SegmentItemsResponse);
|
|
65
65
|
rpc getUserSegmentIds(GetUserSegmentIdsRequest) returns (UserSegmentIdsResponse);
|
|
66
|
+
rpc userMatchesAnyAutoSegments(UserAutoSegmentMatchRequest) returns (UserAutoSegmentMatchResponse);
|
|
66
67
|
//Presets
|
|
67
68
|
rpc createPreset(CreatePresetRequest) returns (CreatePresetResponse);
|
|
68
69
|
rpc readPreset(ReadPresetRequest) returns (ReadPresetResponse);
|
|
@@ -898,6 +899,13 @@ message GetUserSegmentIdsRequest {
|
|
|
898
899
|
message UserSegmentIdsResponse {
|
|
899
900
|
repeated int32 segment_ids = 1;
|
|
900
901
|
}
|
|
902
|
+
message UserAutoSegmentMatchRequest {
|
|
903
|
+
int32 user_id = 1;
|
|
904
|
+
repeated int32 segment_ids = 2;
|
|
905
|
+
}
|
|
906
|
+
message UserAutoSegmentMatchResponse {
|
|
907
|
+
bool matches = 1;
|
|
908
|
+
}
|
|
901
909
|
message SegmentRuleRequest {
|
|
902
910
|
optional SegmentPaymentRuleRequest payment_rule = 1;
|
|
903
911
|
optional SegmentBetRuleRequest bet_rule = 2;
|