protobuf-platform 1.0.139 → 1.0.141
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bonus/bonus.proto +3 -3
- package/bonus/bonus_pb.js +24 -24
- package/game/game.proto +4 -0
- package/game/game_grpc_pb.js +22 -0
- package/game/game_pb.js +180 -0
- package/package.json +1 -1
package/bonus/bonus.proto
CHANGED
@@ -130,9 +130,9 @@ message UserBonusItem {
|
|
130
130
|
optional string activated_at = 16;
|
131
131
|
optional string completed_at = 17;
|
132
132
|
optional string canceled_at = 18;
|
133
|
-
optional
|
134
|
-
optional
|
135
|
-
optional
|
133
|
+
optional int32 claiming_end_in_milliseconds = 19;
|
134
|
+
optional int32 activation_end_in_milliseconds = 20;
|
135
|
+
optional int32 wagering_end_in_milliseconds = 21;
|
136
136
|
}
|
137
137
|
message FreeSpinItem {
|
138
138
|
int32 game_id = 1;
|
package/bonus/bonus_pb.js
CHANGED
@@ -5180,9 +5180,9 @@ proto.bonus.UserBonusItem.toObject = function(includeInstance, msg) {
|
|
5180
5180
|
activatedAt: jspb.Message.getFieldWithDefault(msg, 16, ""),
|
5181
5181
|
completedAt: jspb.Message.getFieldWithDefault(msg, 17, ""),
|
5182
5182
|
canceledAt: jspb.Message.getFieldWithDefault(msg, 18, ""),
|
5183
|
-
claimingEndInMilliseconds: jspb.Message.getFieldWithDefault(msg, 19,
|
5184
|
-
activationEndInMilliseconds: jspb.Message.getFieldWithDefault(msg, 20,
|
5185
|
-
wageringEndInMilliseconds: jspb.Message.getFieldWithDefault(msg, 21,
|
5183
|
+
claimingEndInMilliseconds: jspb.Message.getFieldWithDefault(msg, 19, 0),
|
5184
|
+
activationEndInMilliseconds: jspb.Message.getFieldWithDefault(msg, 20, 0),
|
5185
|
+
wageringEndInMilliseconds: jspb.Message.getFieldWithDefault(msg, 21, 0)
|
5186
5186
|
};
|
5187
5187
|
|
5188
5188
|
if (includeInstance) {
|
@@ -5294,15 +5294,15 @@ proto.bonus.UserBonusItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
5294
5294
|
msg.setCanceledAt(value);
|
5295
5295
|
break;
|
5296
5296
|
case 19:
|
5297
|
-
var value = /** @type {
|
5297
|
+
var value = /** @type {number} */ (reader.readInt32());
|
5298
5298
|
msg.setClaimingEndInMilliseconds(value);
|
5299
5299
|
break;
|
5300
5300
|
case 20:
|
5301
|
-
var value = /** @type {
|
5301
|
+
var value = /** @type {number} */ (reader.readInt32());
|
5302
5302
|
msg.setActivationEndInMilliseconds(value);
|
5303
5303
|
break;
|
5304
5304
|
case 21:
|
5305
|
-
var value = /** @type {
|
5305
|
+
var value = /** @type {number} */ (reader.readInt32());
|
5306
5306
|
msg.setWageringEndInMilliseconds(value);
|
5307
5307
|
break;
|
5308
5308
|
default:
|
@@ -5462,23 +5462,23 @@ proto.bonus.UserBonusItem.serializeBinaryToWriter = function(message, writer) {
|
|
5462
5462
|
f
|
5463
5463
|
);
|
5464
5464
|
}
|
5465
|
-
f = /** @type {
|
5465
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 19));
|
5466
5466
|
if (f != null) {
|
5467
|
-
writer.
|
5467
|
+
writer.writeInt32(
|
5468
5468
|
19,
|
5469
5469
|
f
|
5470
5470
|
);
|
5471
5471
|
}
|
5472
|
-
f = /** @type {
|
5472
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 20));
|
5473
5473
|
if (f != null) {
|
5474
|
-
writer.
|
5474
|
+
writer.writeInt32(
|
5475
5475
|
20,
|
5476
5476
|
f
|
5477
5477
|
);
|
5478
5478
|
}
|
5479
|
-
f = /** @type {
|
5479
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 21));
|
5480
5480
|
if (f != null) {
|
5481
|
-
writer.
|
5481
|
+
writer.writeInt32(
|
5482
5482
|
21,
|
5483
5483
|
f
|
5484
5484
|
);
|
@@ -6138,16 +6138,16 @@ proto.bonus.UserBonusItem.prototype.hasCanceledAt = function() {
|
|
6138
6138
|
|
6139
6139
|
|
6140
6140
|
/**
|
6141
|
-
* optional
|
6142
|
-
* @return {
|
6141
|
+
* optional int32 claiming_end_in_milliseconds = 19;
|
6142
|
+
* @return {number}
|
6143
6143
|
*/
|
6144
6144
|
proto.bonus.UserBonusItem.prototype.getClaimingEndInMilliseconds = function() {
|
6145
|
-
return /** @type {
|
6145
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 19, 0));
|
6146
6146
|
};
|
6147
6147
|
|
6148
6148
|
|
6149
6149
|
/**
|
6150
|
-
* @param {
|
6150
|
+
* @param {number} value
|
6151
6151
|
* @return {!proto.bonus.UserBonusItem} returns this
|
6152
6152
|
*/
|
6153
6153
|
proto.bonus.UserBonusItem.prototype.setClaimingEndInMilliseconds = function(value) {
|
@@ -6174,16 +6174,16 @@ proto.bonus.UserBonusItem.prototype.hasClaimingEndInMilliseconds = function() {
|
|
6174
6174
|
|
6175
6175
|
|
6176
6176
|
/**
|
6177
|
-
* optional
|
6178
|
-
* @return {
|
6177
|
+
* optional int32 activation_end_in_milliseconds = 20;
|
6178
|
+
* @return {number}
|
6179
6179
|
*/
|
6180
6180
|
proto.bonus.UserBonusItem.prototype.getActivationEndInMilliseconds = function() {
|
6181
|
-
return /** @type {
|
6181
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 20, 0));
|
6182
6182
|
};
|
6183
6183
|
|
6184
6184
|
|
6185
6185
|
/**
|
6186
|
-
* @param {
|
6186
|
+
* @param {number} value
|
6187
6187
|
* @return {!proto.bonus.UserBonusItem} returns this
|
6188
6188
|
*/
|
6189
6189
|
proto.bonus.UserBonusItem.prototype.setActivationEndInMilliseconds = function(value) {
|
@@ -6210,16 +6210,16 @@ proto.bonus.UserBonusItem.prototype.hasActivationEndInMilliseconds = function()
|
|
6210
6210
|
|
6211
6211
|
|
6212
6212
|
/**
|
6213
|
-
* optional
|
6214
|
-
* @return {
|
6213
|
+
* optional int32 wagering_end_in_milliseconds = 21;
|
6214
|
+
* @return {number}
|
6215
6215
|
*/
|
6216
6216
|
proto.bonus.UserBonusItem.prototype.getWageringEndInMilliseconds = function() {
|
6217
|
-
return /** @type {
|
6217
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 21, 0));
|
6218
6218
|
};
|
6219
6219
|
|
6220
6220
|
|
6221
6221
|
/**
|
6222
|
-
* @param {
|
6222
|
+
* @param {number} value
|
6223
6223
|
* @return {!proto.bonus.UserBonusItem} returns this
|
6224
6224
|
*/
|
6225
6225
|
proto.bonus.UserBonusItem.prototype.setWageringEndInMilliseconds = function(value) {
|
package/game/game.proto
CHANGED
@@ -56,6 +56,7 @@ service Game {
|
|
56
56
|
rpc cancelFreeSpins(FreeSpinStatusRequest) returns (FreeSpinCampaignResponse);
|
57
57
|
//Cross Services
|
58
58
|
rpc getGamesByUuids(GamesUuids) returns (GamePoorItemsResponse);
|
59
|
+
rpc getGamesByIds(GamesIds) returns (GamePoorItemsResponse);
|
59
60
|
rpc getGameScopesByIds(ScopeRequest) returns (ScopeResponse);
|
60
61
|
rpc getCounterScopes(ScopeRequest) returns (ScopeResponse);
|
61
62
|
//Wager lists
|
@@ -400,6 +401,9 @@ message UserBalanceGameSessionRequest {
|
|
400
401
|
message GamesUuids {
|
401
402
|
string game_uuids = 1;
|
402
403
|
}
|
404
|
+
message GamesIds {
|
405
|
+
repeated int32 game_ids = 1;
|
406
|
+
}
|
403
407
|
message GamePoorItemsResponse {
|
404
408
|
repeated GameItem items = 1;
|
405
409
|
}
|
package/game/game_grpc_pb.js
CHANGED
@@ -224,6 +224,17 @@ function deserialize_game_GameStatusResponse(buffer_arg) {
|
|
224
224
|
return game_pb.GameStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
225
225
|
}
|
226
226
|
|
227
|
+
function serialize_game_GamesIds(arg) {
|
228
|
+
if (!(arg instanceof game_pb.GamesIds)) {
|
229
|
+
throw new Error('Expected argument of type game.GamesIds');
|
230
|
+
}
|
231
|
+
return Buffer.from(arg.serializeBinary());
|
232
|
+
}
|
233
|
+
|
234
|
+
function deserialize_game_GamesIds(buffer_arg) {
|
235
|
+
return game_pb.GamesIds.deserializeBinary(new Uint8Array(buffer_arg));
|
236
|
+
}
|
237
|
+
|
227
238
|
function serialize_game_GamesPriorityRequest(arg) {
|
228
239
|
if (!(arg instanceof game_pb.GamesPriorityRequest)) {
|
229
240
|
throw new Error('Expected argument of type game.GamesPriorityRequest');
|
@@ -1169,6 +1180,17 @@ getGamesByUuids: {
|
|
1169
1180
|
responseSerialize: serialize_game_GamePoorItemsResponse,
|
1170
1181
|
responseDeserialize: deserialize_game_GamePoorItemsResponse,
|
1171
1182
|
},
|
1183
|
+
getGamesByIds: {
|
1184
|
+
path: '/game.Game/getGamesByIds',
|
1185
|
+
requestStream: false,
|
1186
|
+
responseStream: false,
|
1187
|
+
requestType: game_pb.GamesIds,
|
1188
|
+
responseType: game_pb.GamePoorItemsResponse,
|
1189
|
+
requestSerialize: serialize_game_GamesIds,
|
1190
|
+
requestDeserialize: deserialize_game_GamesIds,
|
1191
|
+
responseSerialize: serialize_game_GamePoorItemsResponse,
|
1192
|
+
responseDeserialize: deserialize_game_GamePoorItemsResponse,
|
1193
|
+
},
|
1172
1194
|
getGameScopesByIds: {
|
1173
1195
|
path: '/game.Game/getGameScopesByIds',
|
1174
1196
|
requestStream: false,
|
package/game/game_pb.js
CHANGED
@@ -51,6 +51,7 @@ goog.exportSymbol('proto.game.GameRequest.RequestCase', null, global);
|
|
51
51
|
goog.exportSymbol('proto.game.GameResponse', null, global);
|
52
52
|
goog.exportSymbol('proto.game.GameSearchRequest', null, global);
|
53
53
|
goog.exportSymbol('proto.game.GameStatusResponse', null, global);
|
54
|
+
goog.exportSymbol('proto.game.GamesIds', null, global);
|
54
55
|
goog.exportSymbol('proto.game.GamesPriorityRequest', null, global);
|
55
56
|
goog.exportSymbol('proto.game.GamesUuids', null, global);
|
56
57
|
goog.exportSymbol('proto.game.GetCategoryRequest', null, global);
|
@@ -1338,6 +1339,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
1338
1339
|
*/
|
1339
1340
|
proto.game.GamesUuids.displayName = 'proto.game.GamesUuids';
|
1340
1341
|
}
|
1342
|
+
/**
|
1343
|
+
* Generated by JsPbCodeGenerator.
|
1344
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
1345
|
+
* server response, or constructed directly in Javascript. The array is used
|
1346
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
1347
|
+
* If no data is provided, the constructed object will be empty, but still
|
1348
|
+
* valid.
|
1349
|
+
* @extends {jspb.Message}
|
1350
|
+
* @constructor
|
1351
|
+
*/
|
1352
|
+
proto.game.GamesIds = function(opt_data) {
|
1353
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.game.GamesIds.repeatedFields_, null);
|
1354
|
+
};
|
1355
|
+
goog.inherits(proto.game.GamesIds, jspb.Message);
|
1356
|
+
if (goog.DEBUG && !COMPILED) {
|
1357
|
+
/**
|
1358
|
+
* @public
|
1359
|
+
* @override
|
1360
|
+
*/
|
1361
|
+
proto.game.GamesIds.displayName = 'proto.game.GamesIds';
|
1362
|
+
}
|
1341
1363
|
/**
|
1342
1364
|
* Generated by JsPbCodeGenerator.
|
1343
1365
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
@@ -16776,6 +16798,164 @@ proto.game.GamesUuids.prototype.setGameUuids = function(value) {
|
|
16776
16798
|
|
16777
16799
|
|
16778
16800
|
|
16801
|
+
/**
|
16802
|
+
* List of repeated fields within this message type.
|
16803
|
+
* @private {!Array<number>}
|
16804
|
+
* @const
|
16805
|
+
*/
|
16806
|
+
proto.game.GamesIds.repeatedFields_ = [1];
|
16807
|
+
|
16808
|
+
|
16809
|
+
|
16810
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
16811
|
+
/**
|
16812
|
+
* Creates an object representation of this proto.
|
16813
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
16814
|
+
* Optional fields that are not set will be set to undefined.
|
16815
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
16816
|
+
* For the list of reserved names please see:
|
16817
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
16818
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
16819
|
+
* JSPB instance for transitional soy proto support:
|
16820
|
+
* http://goto/soy-param-migration
|
16821
|
+
* @return {!Object}
|
16822
|
+
*/
|
16823
|
+
proto.game.GamesIds.prototype.toObject = function(opt_includeInstance) {
|
16824
|
+
return proto.game.GamesIds.toObject(opt_includeInstance, this);
|
16825
|
+
};
|
16826
|
+
|
16827
|
+
|
16828
|
+
/**
|
16829
|
+
* Static version of the {@see toObject} method.
|
16830
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
16831
|
+
* the JSPB instance for transitional soy proto support:
|
16832
|
+
* http://goto/soy-param-migration
|
16833
|
+
* @param {!proto.game.GamesIds} msg The msg instance to transform.
|
16834
|
+
* @return {!Object}
|
16835
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
16836
|
+
*/
|
16837
|
+
proto.game.GamesIds.toObject = function(includeInstance, msg) {
|
16838
|
+
var f, obj = {
|
16839
|
+
gameIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
|
16840
|
+
};
|
16841
|
+
|
16842
|
+
if (includeInstance) {
|
16843
|
+
obj.$jspbMessageInstance = msg;
|
16844
|
+
}
|
16845
|
+
return obj;
|
16846
|
+
};
|
16847
|
+
}
|
16848
|
+
|
16849
|
+
|
16850
|
+
/**
|
16851
|
+
* Deserializes binary data (in protobuf wire format).
|
16852
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
16853
|
+
* @return {!proto.game.GamesIds}
|
16854
|
+
*/
|
16855
|
+
proto.game.GamesIds.deserializeBinary = function(bytes) {
|
16856
|
+
var reader = new jspb.BinaryReader(bytes);
|
16857
|
+
var msg = new proto.game.GamesIds;
|
16858
|
+
return proto.game.GamesIds.deserializeBinaryFromReader(msg, reader);
|
16859
|
+
};
|
16860
|
+
|
16861
|
+
|
16862
|
+
/**
|
16863
|
+
* Deserializes binary data (in protobuf wire format) from the
|
16864
|
+
* given reader into the given message object.
|
16865
|
+
* @param {!proto.game.GamesIds} msg The message object to deserialize into.
|
16866
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
16867
|
+
* @return {!proto.game.GamesIds}
|
16868
|
+
*/
|
16869
|
+
proto.game.GamesIds.deserializeBinaryFromReader = function(msg, reader) {
|
16870
|
+
while (reader.nextField()) {
|
16871
|
+
if (reader.isEndGroup()) {
|
16872
|
+
break;
|
16873
|
+
}
|
16874
|
+
var field = reader.getFieldNumber();
|
16875
|
+
switch (field) {
|
16876
|
+
case 1:
|
16877
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
|
16878
|
+
for (var i = 0; i < values.length; i++) {
|
16879
|
+
msg.addGameIds(values[i]);
|
16880
|
+
}
|
16881
|
+
break;
|
16882
|
+
default:
|
16883
|
+
reader.skipField();
|
16884
|
+
break;
|
16885
|
+
}
|
16886
|
+
}
|
16887
|
+
return msg;
|
16888
|
+
};
|
16889
|
+
|
16890
|
+
|
16891
|
+
/**
|
16892
|
+
* Serializes the message to binary data (in protobuf wire format).
|
16893
|
+
* @return {!Uint8Array}
|
16894
|
+
*/
|
16895
|
+
proto.game.GamesIds.prototype.serializeBinary = function() {
|
16896
|
+
var writer = new jspb.BinaryWriter();
|
16897
|
+
proto.game.GamesIds.serializeBinaryToWriter(this, writer);
|
16898
|
+
return writer.getResultBuffer();
|
16899
|
+
};
|
16900
|
+
|
16901
|
+
|
16902
|
+
/**
|
16903
|
+
* Serializes the given message to binary data (in protobuf wire
|
16904
|
+
* format), writing to the given BinaryWriter.
|
16905
|
+
* @param {!proto.game.GamesIds} message
|
16906
|
+
* @param {!jspb.BinaryWriter} writer
|
16907
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
16908
|
+
*/
|
16909
|
+
proto.game.GamesIds.serializeBinaryToWriter = function(message, writer) {
|
16910
|
+
var f = undefined;
|
16911
|
+
f = message.getGameIdsList();
|
16912
|
+
if (f.length > 0) {
|
16913
|
+
writer.writePackedInt32(
|
16914
|
+
1,
|
16915
|
+
f
|
16916
|
+
);
|
16917
|
+
}
|
16918
|
+
};
|
16919
|
+
|
16920
|
+
|
16921
|
+
/**
|
16922
|
+
* repeated int32 game_ids = 1;
|
16923
|
+
* @return {!Array<number>}
|
16924
|
+
*/
|
16925
|
+
proto.game.GamesIds.prototype.getGameIdsList = function() {
|
16926
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
|
16927
|
+
};
|
16928
|
+
|
16929
|
+
|
16930
|
+
/**
|
16931
|
+
* @param {!Array<number>} value
|
16932
|
+
* @return {!proto.game.GamesIds} returns this
|
16933
|
+
*/
|
16934
|
+
proto.game.GamesIds.prototype.setGameIdsList = function(value) {
|
16935
|
+
return jspb.Message.setField(this, 1, value || []);
|
16936
|
+
};
|
16937
|
+
|
16938
|
+
|
16939
|
+
/**
|
16940
|
+
* @param {number} value
|
16941
|
+
* @param {number=} opt_index
|
16942
|
+
* @return {!proto.game.GamesIds} returns this
|
16943
|
+
*/
|
16944
|
+
proto.game.GamesIds.prototype.addGameIds = function(value, opt_index) {
|
16945
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
16946
|
+
};
|
16947
|
+
|
16948
|
+
|
16949
|
+
/**
|
16950
|
+
* Clears the list making it empty but non-null.
|
16951
|
+
* @return {!proto.game.GamesIds} returns this
|
16952
|
+
*/
|
16953
|
+
proto.game.GamesIds.prototype.clearGameIdsList = function() {
|
16954
|
+
return this.setGameIdsList([]);
|
16955
|
+
};
|
16956
|
+
|
16957
|
+
|
16958
|
+
|
16779
16959
|
/**
|
16780
16960
|
* List of repeated fields within this message type.
|
16781
16961
|
* @private {!Array<number>}
|