protobuf-platform 1.0.119 → 1.0.121
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 +6 -0
- package/bonus/bonus_grpc_pb.js +5 -0
- package/game/game.proto +5 -0
- package/game/game_grpc_pb.js +33 -0
- package/game/game_pb.js +152 -0
- package/package.json +1 -1
package/bonus/bonus.proto
CHANGED
@@ -4,7 +4,13 @@ package bonus;
|
|
4
4
|
|
5
5
|
service Bonus {
|
6
6
|
rpc checkConnection(PingRequest) returns (PongResponse);
|
7
|
+
//rpc createSingleBonus(stream BonusRequest) returns (BonusResponse);
|
8
|
+
//rpc readSingleBonus(GetBonusRequest) returns (BonusResponse);
|
9
|
+
//rpc updateSingleBonus(stream BonusRequest) returns (BonusResponse);
|
10
|
+
//rpc deleteSingleBonus(GetBonusRequest) returns (BonusStatusResponse);
|
11
|
+
//rpc readListBonuses(PaginationRequest) returns (BonusItemsResponse);
|
7
12
|
}
|
8
13
|
|
9
14
|
message PingRequest { string ping = 1; }
|
10
15
|
message PongResponse { string pong = 1; }
|
16
|
+
|
package/bonus/bonus_grpc_pb.js
CHANGED
@@ -39,6 +39,11 @@ var BonusService = exports.BonusService = {
|
|
39
39
|
responseSerialize: serialize_bonus_PongResponse,
|
40
40
|
responseDeserialize: deserialize_bonus_PongResponse,
|
41
41
|
},
|
42
|
+
// rpc createSingleBonus(stream BonusRequest) returns (BonusResponse);
|
43
|
+
// rpc readSingleBonus(GetBonusRequest) returns (BonusResponse);
|
44
|
+
// rpc updateSingleBonus(stream BonusRequest) returns (BonusResponse);
|
45
|
+
// rpc deleteSingleBonus(GetBonusRequest) returns (BonusStatusResponse);
|
46
|
+
// rpc readListBonuses(PaginationRequest) returns (BonusItemsResponse);
|
42
47
|
};
|
43
48
|
|
44
49
|
exports.BonusClient = grpc.makeGenericClientConstructor(BonusService);
|
package/game/game.proto
CHANGED
@@ -52,6 +52,8 @@ service Game {
|
|
52
52
|
//Free Spins
|
53
53
|
rpc getFreeSpinsSettings(FreeSpinSettingsRequest) returns (FreeSpinSettingsResponse);
|
54
54
|
rpc setFreeSpins(FreeSpinCampaignRequest) returns (FreeSpinCampaignResponse);
|
55
|
+
rpc checkFreeSpins(FreeSpinStatusRequest) returns (FreeSpinCampaignResponse);
|
56
|
+
rpc cancelFreeSpins(FreeSpinStatusRequest) returns (FreeSpinCampaignResponse);
|
55
57
|
//Cross Services
|
56
58
|
rpc getGamesByUuids(GamesUuids) returns (GamePoorItemsResponse);
|
57
59
|
rpc getGameScopesByIds(ScopeRequest) returns (ScopeResponse);
|
@@ -416,6 +418,9 @@ message FreeSpinCampaignRequest {
|
|
416
418
|
optional float denomination = 10;
|
417
419
|
optional int32 total_bet_id = 11;
|
418
420
|
}
|
421
|
+
message FreeSpinStatusRequest {
|
422
|
+
string free_spin_id = 1;
|
423
|
+
}
|
419
424
|
message FreeSpinCampaignResponse {
|
420
425
|
string data = 1;
|
421
426
|
}
|
package/game/game_grpc_pb.js
CHANGED
@@ -158,6 +158,17 @@ function deserialize_game_FreeSpinSettingsResponse(buffer_arg) {
|
|
158
158
|
return game_pb.FreeSpinSettingsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
159
159
|
}
|
160
160
|
|
161
|
+
function serialize_game_FreeSpinStatusRequest(arg) {
|
162
|
+
if (!(arg instanceof game_pb.FreeSpinStatusRequest)) {
|
163
|
+
throw new Error('Expected argument of type game.FreeSpinStatusRequest');
|
164
|
+
}
|
165
|
+
return Buffer.from(arg.serializeBinary());
|
166
|
+
}
|
167
|
+
|
168
|
+
function deserialize_game_FreeSpinStatusRequest(buffer_arg) {
|
169
|
+
return game_pb.FreeSpinStatusRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
170
|
+
}
|
171
|
+
|
161
172
|
function serialize_game_GameItemsResponse(arg) {
|
162
173
|
if (!(arg instanceof game_pb.GameItemsResponse)) {
|
163
174
|
throw new Error('Expected argument of type game.GameItemsResponse');
|
@@ -1069,6 +1080,28 @@ getFreeSpinsSettings: {
|
|
1069
1080
|
responseSerialize: serialize_game_FreeSpinCampaignResponse,
|
1070
1081
|
responseDeserialize: deserialize_game_FreeSpinCampaignResponse,
|
1071
1082
|
},
|
1083
|
+
checkFreeSpins: {
|
1084
|
+
path: '/game.Game/checkFreeSpins',
|
1085
|
+
requestStream: false,
|
1086
|
+
responseStream: false,
|
1087
|
+
requestType: game_pb.FreeSpinStatusRequest,
|
1088
|
+
responseType: game_pb.FreeSpinCampaignResponse,
|
1089
|
+
requestSerialize: serialize_game_FreeSpinStatusRequest,
|
1090
|
+
requestDeserialize: deserialize_game_FreeSpinStatusRequest,
|
1091
|
+
responseSerialize: serialize_game_FreeSpinCampaignResponse,
|
1092
|
+
responseDeserialize: deserialize_game_FreeSpinCampaignResponse,
|
1093
|
+
},
|
1094
|
+
cancelFreeSpins: {
|
1095
|
+
path: '/game.Game/cancelFreeSpins',
|
1096
|
+
requestStream: false,
|
1097
|
+
responseStream: false,
|
1098
|
+
requestType: game_pb.FreeSpinStatusRequest,
|
1099
|
+
responseType: game_pb.FreeSpinCampaignResponse,
|
1100
|
+
requestSerialize: serialize_game_FreeSpinStatusRequest,
|
1101
|
+
requestDeserialize: deserialize_game_FreeSpinStatusRequest,
|
1102
|
+
responseSerialize: serialize_game_FreeSpinCampaignResponse,
|
1103
|
+
responseDeserialize: deserialize_game_FreeSpinCampaignResponse,
|
1104
|
+
},
|
1072
1105
|
// Cross Services
|
1073
1106
|
getGamesByUuids: {
|
1074
1107
|
path: '/game.Game/getGamesByUuids',
|
package/game/game_pb.js
CHANGED
@@ -41,6 +41,7 @@ goog.exportSymbol('proto.game.FreeSpinCampaignRequest', null, global);
|
|
41
41
|
goog.exportSymbol('proto.game.FreeSpinCampaignResponse', null, global);
|
42
42
|
goog.exportSymbol('proto.game.FreeSpinSettingsRequest', null, global);
|
43
43
|
goog.exportSymbol('proto.game.FreeSpinSettingsResponse', null, global);
|
44
|
+
goog.exportSymbol('proto.game.FreeSpinStatusRequest', null, global);
|
44
45
|
goog.exportSymbol('proto.game.GameItem', null, global);
|
45
46
|
goog.exportSymbol('proto.game.GameItemRequest', null, global);
|
46
47
|
goog.exportSymbol('proto.game.GameItemsResponse', null, global);
|
@@ -1457,6 +1458,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
1457
1458
|
*/
|
1458
1459
|
proto.game.FreeSpinCampaignRequest.displayName = 'proto.game.FreeSpinCampaignRequest';
|
1459
1460
|
}
|
1461
|
+
/**
|
1462
|
+
* Generated by JsPbCodeGenerator.
|
1463
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
1464
|
+
* server response, or constructed directly in Javascript. The array is used
|
1465
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
1466
|
+
* If no data is provided, the constructed object will be empty, but still
|
1467
|
+
* valid.
|
1468
|
+
* @extends {jspb.Message}
|
1469
|
+
* @constructor
|
1470
|
+
*/
|
1471
|
+
proto.game.FreeSpinStatusRequest = function(opt_data) {
|
1472
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
1473
|
+
};
|
1474
|
+
goog.inherits(proto.game.FreeSpinStatusRequest, jspb.Message);
|
1475
|
+
if (goog.DEBUG && !COMPILED) {
|
1476
|
+
/**
|
1477
|
+
* @public
|
1478
|
+
* @override
|
1479
|
+
*/
|
1480
|
+
proto.game.FreeSpinStatusRequest.displayName = 'proto.game.FreeSpinStatusRequest';
|
1481
|
+
}
|
1460
1482
|
/**
|
1461
1483
|
* Generated by JsPbCodeGenerator.
|
1462
1484
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
@@ -17626,6 +17648,136 @@ proto.game.FreeSpinCampaignRequest.prototype.hasTotalBetId = function() {
|
|
17626
17648
|
|
17627
17649
|
|
17628
17650
|
|
17651
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
17652
|
+
/**
|
17653
|
+
* Creates an object representation of this proto.
|
17654
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
17655
|
+
* Optional fields that are not set will be set to undefined.
|
17656
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
17657
|
+
* For the list of reserved names please see:
|
17658
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
17659
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
17660
|
+
* JSPB instance for transitional soy proto support:
|
17661
|
+
* http://goto/soy-param-migration
|
17662
|
+
* @return {!Object}
|
17663
|
+
*/
|
17664
|
+
proto.game.FreeSpinStatusRequest.prototype.toObject = function(opt_includeInstance) {
|
17665
|
+
return proto.game.FreeSpinStatusRequest.toObject(opt_includeInstance, this);
|
17666
|
+
};
|
17667
|
+
|
17668
|
+
|
17669
|
+
/**
|
17670
|
+
* Static version of the {@see toObject} method.
|
17671
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
17672
|
+
* the JSPB instance for transitional soy proto support:
|
17673
|
+
* http://goto/soy-param-migration
|
17674
|
+
* @param {!proto.game.FreeSpinStatusRequest} msg The msg instance to transform.
|
17675
|
+
* @return {!Object}
|
17676
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
17677
|
+
*/
|
17678
|
+
proto.game.FreeSpinStatusRequest.toObject = function(includeInstance, msg) {
|
17679
|
+
var f, obj = {
|
17680
|
+
freeSpinId: jspb.Message.getFieldWithDefault(msg, 1, "")
|
17681
|
+
};
|
17682
|
+
|
17683
|
+
if (includeInstance) {
|
17684
|
+
obj.$jspbMessageInstance = msg;
|
17685
|
+
}
|
17686
|
+
return obj;
|
17687
|
+
};
|
17688
|
+
}
|
17689
|
+
|
17690
|
+
|
17691
|
+
/**
|
17692
|
+
* Deserializes binary data (in protobuf wire format).
|
17693
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
17694
|
+
* @return {!proto.game.FreeSpinStatusRequest}
|
17695
|
+
*/
|
17696
|
+
proto.game.FreeSpinStatusRequest.deserializeBinary = function(bytes) {
|
17697
|
+
var reader = new jspb.BinaryReader(bytes);
|
17698
|
+
var msg = new proto.game.FreeSpinStatusRequest;
|
17699
|
+
return proto.game.FreeSpinStatusRequest.deserializeBinaryFromReader(msg, reader);
|
17700
|
+
};
|
17701
|
+
|
17702
|
+
|
17703
|
+
/**
|
17704
|
+
* Deserializes binary data (in protobuf wire format) from the
|
17705
|
+
* given reader into the given message object.
|
17706
|
+
* @param {!proto.game.FreeSpinStatusRequest} msg The message object to deserialize into.
|
17707
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
17708
|
+
* @return {!proto.game.FreeSpinStatusRequest}
|
17709
|
+
*/
|
17710
|
+
proto.game.FreeSpinStatusRequest.deserializeBinaryFromReader = function(msg, reader) {
|
17711
|
+
while (reader.nextField()) {
|
17712
|
+
if (reader.isEndGroup()) {
|
17713
|
+
break;
|
17714
|
+
}
|
17715
|
+
var field = reader.getFieldNumber();
|
17716
|
+
switch (field) {
|
17717
|
+
case 1:
|
17718
|
+
var value = /** @type {string} */ (reader.readString());
|
17719
|
+
msg.setFreeSpinId(value);
|
17720
|
+
break;
|
17721
|
+
default:
|
17722
|
+
reader.skipField();
|
17723
|
+
break;
|
17724
|
+
}
|
17725
|
+
}
|
17726
|
+
return msg;
|
17727
|
+
};
|
17728
|
+
|
17729
|
+
|
17730
|
+
/**
|
17731
|
+
* Serializes the message to binary data (in protobuf wire format).
|
17732
|
+
* @return {!Uint8Array}
|
17733
|
+
*/
|
17734
|
+
proto.game.FreeSpinStatusRequest.prototype.serializeBinary = function() {
|
17735
|
+
var writer = new jspb.BinaryWriter();
|
17736
|
+
proto.game.FreeSpinStatusRequest.serializeBinaryToWriter(this, writer);
|
17737
|
+
return writer.getResultBuffer();
|
17738
|
+
};
|
17739
|
+
|
17740
|
+
|
17741
|
+
/**
|
17742
|
+
* Serializes the given message to binary data (in protobuf wire
|
17743
|
+
* format), writing to the given BinaryWriter.
|
17744
|
+
* @param {!proto.game.FreeSpinStatusRequest} message
|
17745
|
+
* @param {!jspb.BinaryWriter} writer
|
17746
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
17747
|
+
*/
|
17748
|
+
proto.game.FreeSpinStatusRequest.serializeBinaryToWriter = function(message, writer) {
|
17749
|
+
var f = undefined;
|
17750
|
+
f = message.getFreeSpinId();
|
17751
|
+
if (f.length > 0) {
|
17752
|
+
writer.writeString(
|
17753
|
+
1,
|
17754
|
+
f
|
17755
|
+
);
|
17756
|
+
}
|
17757
|
+
};
|
17758
|
+
|
17759
|
+
|
17760
|
+
/**
|
17761
|
+
* optional string free_spin_id = 1;
|
17762
|
+
* @return {string}
|
17763
|
+
*/
|
17764
|
+
proto.game.FreeSpinStatusRequest.prototype.getFreeSpinId = function() {
|
17765
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
17766
|
+
};
|
17767
|
+
|
17768
|
+
|
17769
|
+
/**
|
17770
|
+
* @param {string} value
|
17771
|
+
* @return {!proto.game.FreeSpinStatusRequest} returns this
|
17772
|
+
*/
|
17773
|
+
proto.game.FreeSpinStatusRequest.prototype.setFreeSpinId = function(value) {
|
17774
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
17775
|
+
};
|
17776
|
+
|
17777
|
+
|
17778
|
+
|
17779
|
+
|
17780
|
+
|
17629
17781
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
17630
17782
|
/**
|
17631
17783
|
* Creates an object representation of this proto.
|