protobuf-platform 1.0.178 → 1.0.180
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/game/game.proto +4 -2
- package/game/game_grpc_pb.js +22 -0
- package/game/game_pb.js +102 -8
- package/loyalty/loyalty.proto +1 -1
- package/loyalty/loyalty_pb.js +49 -1
- package/package.json +1 -1
package/game/game.proto
CHANGED
@@ -72,6 +72,7 @@ service Game {
|
|
72
72
|
rpc removeGamesFromWagerList(WagerListGamesRequest) returns (GameStatusResponse);
|
73
73
|
rpc fetchGamesFromWagerList(PaginationRequest) returns (GameItemsResponse);
|
74
74
|
rpc notProcessedGamesInWagerList(PaginationRequest) returns (GameItemsResponse);
|
75
|
+
rpc getPoorWagerLists(WagerSearchRequest) returns (WagerListItemsResponse);
|
75
76
|
}
|
76
77
|
|
77
78
|
message PingRequest { string ping = 1; }
|
@@ -98,8 +99,9 @@ message GameSearchRequest {
|
|
98
99
|
optional int32 has_free_spins = 13;
|
99
100
|
}
|
100
101
|
message WagerSearchRequest {
|
101
|
-
int32 wager_id = 1;
|
102
|
+
optional int32 wager_id = 1;
|
102
103
|
optional string game_title = 2;
|
104
|
+
repeated int32 wager_ids = 3;
|
103
105
|
}
|
104
106
|
//Media
|
105
107
|
message File { bytes media = 1; }
|
@@ -512,7 +514,7 @@ message WagerListGamesRequest {
|
|
512
514
|
message WagerListItem {
|
513
515
|
int32 id = 1;
|
514
516
|
string title = 2;
|
515
|
-
float contribution = 3;
|
517
|
+
optional float contribution = 3;
|
516
518
|
optional string description = 4;
|
517
519
|
optional bool is_active = 5;
|
518
520
|
}
|
package/game/game_grpc_pb.js
CHANGED
@@ -708,6 +708,17 @@ function deserialize_game_WagerListResponse(buffer_arg) {
|
|
708
708
|
return game_pb.WagerListResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
709
709
|
}
|
710
710
|
|
711
|
+
function serialize_game_WagerSearchRequest(arg) {
|
712
|
+
if (!(arg instanceof game_pb.WagerSearchRequest)) {
|
713
|
+
throw new Error('Expected argument of type game.WagerSearchRequest');
|
714
|
+
}
|
715
|
+
return Buffer.from(arg.serializeBinary());
|
716
|
+
}
|
717
|
+
|
718
|
+
function deserialize_game_WagerSearchRequest(buffer_arg) {
|
719
|
+
return game_pb.WagerSearchRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
720
|
+
}
|
721
|
+
|
711
722
|
|
712
723
|
var GameService = exports.GameService = {
|
713
724
|
checkConnection: {
|
@@ -1379,6 +1390,17 @@ readSingleWagerList: {
|
|
1379
1390
|
responseSerialize: serialize_game_GameItemsResponse,
|
1380
1391
|
responseDeserialize: deserialize_game_GameItemsResponse,
|
1381
1392
|
},
|
1393
|
+
getPoorWagerLists: {
|
1394
|
+
path: '/game.Game/getPoorWagerLists',
|
1395
|
+
requestStream: false,
|
1396
|
+
responseStream: false,
|
1397
|
+
requestType: game_pb.WagerSearchRequest,
|
1398
|
+
responseType: game_pb.WagerListItemsResponse,
|
1399
|
+
requestSerialize: serialize_game_WagerSearchRequest,
|
1400
|
+
requestDeserialize: deserialize_game_WagerSearchRequest,
|
1401
|
+
responseSerialize: serialize_game_WagerListItemsResponse,
|
1402
|
+
responseDeserialize: deserialize_game_WagerListItemsResponse,
|
1403
|
+
},
|
1382
1404
|
};
|
1383
1405
|
|
1384
1406
|
exports.GameClient = grpc.makeGenericClientConstructor(GameService);
|
package/game/game_pb.js
CHANGED
@@ -201,7 +201,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
201
201
|
* @constructor
|
202
202
|
*/
|
203
203
|
proto.game.WagerSearchRequest = function(opt_data) {
|
204
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
204
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.game.WagerSearchRequest.repeatedFields_, null);
|
205
205
|
};
|
206
206
|
goog.inherits(proto.game.WagerSearchRequest, jspb.Message);
|
207
207
|
if (goog.DEBUG && !COMPILED) {
|
@@ -3053,6 +3053,13 @@ proto.game.GameSearchRequest.prototype.hasHasFreeSpins = function() {
|
|
3053
3053
|
|
3054
3054
|
|
3055
3055
|
|
3056
|
+
/**
|
3057
|
+
* List of repeated fields within this message type.
|
3058
|
+
* @private {!Array<number>}
|
3059
|
+
* @const
|
3060
|
+
*/
|
3061
|
+
proto.game.WagerSearchRequest.repeatedFields_ = [3];
|
3062
|
+
|
3056
3063
|
|
3057
3064
|
|
3058
3065
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
@@ -3085,7 +3092,8 @@ proto.game.WagerSearchRequest.prototype.toObject = function(opt_includeInstance)
|
|
3085
3092
|
proto.game.WagerSearchRequest.toObject = function(includeInstance, msg) {
|
3086
3093
|
var f, obj = {
|
3087
3094
|
wagerId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
3088
|
-
gameTitle: jspb.Message.getFieldWithDefault(msg, 2, "")
|
3095
|
+
gameTitle: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
3096
|
+
wagerIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
|
3089
3097
|
};
|
3090
3098
|
|
3091
3099
|
if (includeInstance) {
|
@@ -3130,6 +3138,12 @@ proto.game.WagerSearchRequest.deserializeBinaryFromReader = function(msg, reader
|
|
3130
3138
|
var value = /** @type {string} */ (reader.readString());
|
3131
3139
|
msg.setGameTitle(value);
|
3132
3140
|
break;
|
3141
|
+
case 3:
|
3142
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
|
3143
|
+
for (var i = 0; i < values.length; i++) {
|
3144
|
+
msg.addWagerIds(values[i]);
|
3145
|
+
}
|
3146
|
+
break;
|
3133
3147
|
default:
|
3134
3148
|
reader.skipField();
|
3135
3149
|
break;
|
@@ -3159,8 +3173,8 @@ proto.game.WagerSearchRequest.prototype.serializeBinary = function() {
|
|
3159
3173
|
*/
|
3160
3174
|
proto.game.WagerSearchRequest.serializeBinaryToWriter = function(message, writer) {
|
3161
3175
|
var f = undefined;
|
3162
|
-
f =
|
3163
|
-
if (f
|
3176
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
3177
|
+
if (f != null) {
|
3164
3178
|
writer.writeInt32(
|
3165
3179
|
1,
|
3166
3180
|
f
|
@@ -3173,6 +3187,13 @@ proto.game.WagerSearchRequest.serializeBinaryToWriter = function(message, writer
|
|
3173
3187
|
f
|
3174
3188
|
);
|
3175
3189
|
}
|
3190
|
+
f = message.getWagerIdsList();
|
3191
|
+
if (f.length > 0) {
|
3192
|
+
writer.writePackedInt32(
|
3193
|
+
3,
|
3194
|
+
f
|
3195
|
+
);
|
3196
|
+
}
|
3176
3197
|
};
|
3177
3198
|
|
3178
3199
|
|
@@ -3190,7 +3211,25 @@ proto.game.WagerSearchRequest.prototype.getWagerId = function() {
|
|
3190
3211
|
* @return {!proto.game.WagerSearchRequest} returns this
|
3191
3212
|
*/
|
3192
3213
|
proto.game.WagerSearchRequest.prototype.setWagerId = function(value) {
|
3193
|
-
return jspb.Message.
|
3214
|
+
return jspb.Message.setField(this, 1, value);
|
3215
|
+
};
|
3216
|
+
|
3217
|
+
|
3218
|
+
/**
|
3219
|
+
* Clears the field making it undefined.
|
3220
|
+
* @return {!proto.game.WagerSearchRequest} returns this
|
3221
|
+
*/
|
3222
|
+
proto.game.WagerSearchRequest.prototype.clearWagerId = function() {
|
3223
|
+
return jspb.Message.setField(this, 1, undefined);
|
3224
|
+
};
|
3225
|
+
|
3226
|
+
|
3227
|
+
/**
|
3228
|
+
* Returns whether this field is set.
|
3229
|
+
* @return {boolean}
|
3230
|
+
*/
|
3231
|
+
proto.game.WagerSearchRequest.prototype.hasWagerId = function() {
|
3232
|
+
return jspb.Message.getField(this, 1) != null;
|
3194
3233
|
};
|
3195
3234
|
|
3196
3235
|
|
@@ -3230,6 +3269,43 @@ proto.game.WagerSearchRequest.prototype.hasGameTitle = function() {
|
|
3230
3269
|
};
|
3231
3270
|
|
3232
3271
|
|
3272
|
+
/**
|
3273
|
+
* repeated int32 wager_ids = 3;
|
3274
|
+
* @return {!Array<number>}
|
3275
|
+
*/
|
3276
|
+
proto.game.WagerSearchRequest.prototype.getWagerIdsList = function() {
|
3277
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 3));
|
3278
|
+
};
|
3279
|
+
|
3280
|
+
|
3281
|
+
/**
|
3282
|
+
* @param {!Array<number>} value
|
3283
|
+
* @return {!proto.game.WagerSearchRequest} returns this
|
3284
|
+
*/
|
3285
|
+
proto.game.WagerSearchRequest.prototype.setWagerIdsList = function(value) {
|
3286
|
+
return jspb.Message.setField(this, 3, value || []);
|
3287
|
+
};
|
3288
|
+
|
3289
|
+
|
3290
|
+
/**
|
3291
|
+
* @param {number} value
|
3292
|
+
* @param {number=} opt_index
|
3293
|
+
* @return {!proto.game.WagerSearchRequest} returns this
|
3294
|
+
*/
|
3295
|
+
proto.game.WagerSearchRequest.prototype.addWagerIds = function(value, opt_index) {
|
3296
|
+
return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
|
3297
|
+
};
|
3298
|
+
|
3299
|
+
|
3300
|
+
/**
|
3301
|
+
* Clears the list making it empty but non-null.
|
3302
|
+
* @return {!proto.game.WagerSearchRequest} returns this
|
3303
|
+
*/
|
3304
|
+
proto.game.WagerSearchRequest.prototype.clearWagerIdsList = function() {
|
3305
|
+
return this.setWagerIdsList([]);
|
3306
|
+
};
|
3307
|
+
|
3308
|
+
|
3233
3309
|
|
3234
3310
|
|
3235
3311
|
|
@@ -21312,8 +21388,8 @@ proto.game.WagerListItem.serializeBinaryToWriter = function(message, writer) {
|
|
21312
21388
|
f
|
21313
21389
|
);
|
21314
21390
|
}
|
21315
|
-
f =
|
21316
|
-
if (f
|
21391
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
21392
|
+
if (f != null) {
|
21317
21393
|
writer.writeFloat(
|
21318
21394
|
3,
|
21319
21395
|
f
|
@@ -21386,7 +21462,25 @@ proto.game.WagerListItem.prototype.getContribution = function() {
|
|
21386
21462
|
* @return {!proto.game.WagerListItem} returns this
|
21387
21463
|
*/
|
21388
21464
|
proto.game.WagerListItem.prototype.setContribution = function(value) {
|
21389
|
-
return jspb.Message.
|
21465
|
+
return jspb.Message.setField(this, 3, value);
|
21466
|
+
};
|
21467
|
+
|
21468
|
+
|
21469
|
+
/**
|
21470
|
+
* Clears the field making it undefined.
|
21471
|
+
* @return {!proto.game.WagerListItem} returns this
|
21472
|
+
*/
|
21473
|
+
proto.game.WagerListItem.prototype.clearContribution = function() {
|
21474
|
+
return jspb.Message.setField(this, 3, undefined);
|
21475
|
+
};
|
21476
|
+
|
21477
|
+
|
21478
|
+
/**
|
21479
|
+
* Returns whether this field is set.
|
21480
|
+
* @return {boolean}
|
21481
|
+
*/
|
21482
|
+
proto.game.WagerListItem.prototype.hasContribution = function() {
|
21483
|
+
return jspb.Message.getField(this, 3) != null;
|
21390
21484
|
};
|
21391
21485
|
|
21392
21486
|
|
package/loyalty/loyalty.proto
CHANGED
@@ -21,7 +21,7 @@ service Loyalty {
|
|
21
21
|
|
22
22
|
message PingRequest { string ping = 1; }
|
23
23
|
message PongResponse { string pong = 1; }
|
24
|
-
message PaginationRequest { int32 limit = 1; int32 offset = 2; optional LoyaltySearchRequest loyalty_search_params = 3; }
|
24
|
+
message PaginationRequest { int32 limit = 1; int32 offset = 2; optional LoyaltySearchRequest loyalty_search_params = 3; optional string type = 4; }
|
25
25
|
message LoyaltySearchRequest {
|
26
26
|
optional int32 loyalty_id = 1;
|
27
27
|
optional int32 user_id = 2;
|
package/loyalty/loyalty_pb.js
CHANGED
@@ -800,7 +800,8 @@ proto.loyalty.PaginationRequest.toObject = function(includeInstance, msg) {
|
|
800
800
|
var f, obj = {
|
801
801
|
limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
802
802
|
offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
803
|
-
loyaltySearchParams: (f = msg.getLoyaltySearchParams()) && proto.loyalty.LoyaltySearchRequest.toObject(includeInstance, f)
|
803
|
+
loyaltySearchParams: (f = msg.getLoyaltySearchParams()) && proto.loyalty.LoyaltySearchRequest.toObject(includeInstance, f),
|
804
|
+
type: jspb.Message.getFieldWithDefault(msg, 4, "")
|
804
805
|
};
|
805
806
|
|
806
807
|
if (includeInstance) {
|
@@ -850,6 +851,10 @@ proto.loyalty.PaginationRequest.deserializeBinaryFromReader = function(msg, read
|
|
850
851
|
reader.readMessage(value,proto.loyalty.LoyaltySearchRequest.deserializeBinaryFromReader);
|
851
852
|
msg.setLoyaltySearchParams(value);
|
852
853
|
break;
|
854
|
+
case 4:
|
855
|
+
var value = /** @type {string} */ (reader.readString());
|
856
|
+
msg.setType(value);
|
857
|
+
break;
|
853
858
|
default:
|
854
859
|
reader.skipField();
|
855
860
|
break;
|
@@ -901,6 +906,13 @@ proto.loyalty.PaginationRequest.serializeBinaryToWriter = function(message, writ
|
|
901
906
|
proto.loyalty.LoyaltySearchRequest.serializeBinaryToWriter
|
902
907
|
);
|
903
908
|
}
|
909
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
910
|
+
if (f != null) {
|
911
|
+
writer.writeString(
|
912
|
+
4,
|
913
|
+
f
|
914
|
+
);
|
915
|
+
}
|
904
916
|
};
|
905
917
|
|
906
918
|
|
@@ -977,6 +989,42 @@ proto.loyalty.PaginationRequest.prototype.hasLoyaltySearchParams = function() {
|
|
977
989
|
};
|
978
990
|
|
979
991
|
|
992
|
+
/**
|
993
|
+
* optional string type = 4;
|
994
|
+
* @return {string}
|
995
|
+
*/
|
996
|
+
proto.loyalty.PaginationRequest.prototype.getType = function() {
|
997
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
998
|
+
};
|
999
|
+
|
1000
|
+
|
1001
|
+
/**
|
1002
|
+
* @param {string} value
|
1003
|
+
* @return {!proto.loyalty.PaginationRequest} returns this
|
1004
|
+
*/
|
1005
|
+
proto.loyalty.PaginationRequest.prototype.setType = function(value) {
|
1006
|
+
return jspb.Message.setField(this, 4, value);
|
1007
|
+
};
|
1008
|
+
|
1009
|
+
|
1010
|
+
/**
|
1011
|
+
* Clears the field making it undefined.
|
1012
|
+
* @return {!proto.loyalty.PaginationRequest} returns this
|
1013
|
+
*/
|
1014
|
+
proto.loyalty.PaginationRequest.prototype.clearType = function() {
|
1015
|
+
return jspb.Message.setField(this, 4, undefined);
|
1016
|
+
};
|
1017
|
+
|
1018
|
+
|
1019
|
+
/**
|
1020
|
+
* Returns whether this field is set.
|
1021
|
+
* @return {boolean}
|
1022
|
+
*/
|
1023
|
+
proto.loyalty.PaginationRequest.prototype.hasType = function() {
|
1024
|
+
return jspb.Message.getField(this, 4) != null;
|
1025
|
+
};
|
1026
|
+
|
1027
|
+
|
980
1028
|
|
981
1029
|
|
982
1030
|
|