protobuf-platform 1.2.17 → 1.2.19
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/bet/bet.proto +7 -0
- package/bet/bet_grpc_pb.js +22 -0
- package/bet/bet_pb.js +242 -0
- package/package.json +1 -1
- package/user/user.proto +1 -0
- package/user/user_pb.js +49 -1
package/bet/bet.proto
CHANGED
@@ -16,6 +16,7 @@ service Bet {
|
|
16
16
|
rpc axiomCheckSession(AxiomCheckSessionRequest) returns (AxiomCheckSessionResponse);
|
17
17
|
rpc axiomGetBets(AxiomGetBetsRequest) returns (AxiomBetsResponse);
|
18
18
|
rpc axiomCreateBet(AxiomCreateBetRequest) returns (AxiomBetStatusResponse);
|
19
|
+
rpc axiomProcessBet(AxiomProcessBetRequest) returns (AxiomBetStatusResponse);
|
19
20
|
}
|
20
21
|
|
21
22
|
message PingRequest { string ping = 1; }
|
@@ -138,6 +139,12 @@ message AxiomCreateBetRequest {
|
|
138
139
|
optional string freebet_transaction_id = 7;
|
139
140
|
optional string bonus_type = 8;
|
140
141
|
}
|
142
|
+
message AxiomProcessBetRequest {
|
143
|
+
float amount = 1;
|
144
|
+
string bid = 2;
|
145
|
+
int32 user_id = 3;
|
146
|
+
string hash = 4;
|
147
|
+
}
|
141
148
|
message AxiomBetStatusResponse {
|
142
149
|
string status = 1;
|
143
150
|
}
|
package/bet/bet_grpc_pb.js
CHANGED
@@ -92,6 +92,17 @@ function deserialize_bet_AxiomGetHashRequest(buffer_arg) {
|
|
92
92
|
return bet_pb.AxiomGetHashRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
93
93
|
}
|
94
94
|
|
95
|
+
function serialize_bet_AxiomProcessBetRequest(arg) {
|
96
|
+
if (!(arg instanceof bet_pb.AxiomProcessBetRequest)) {
|
97
|
+
throw new Error('Expected argument of type bet.AxiomProcessBetRequest');
|
98
|
+
}
|
99
|
+
return Buffer.from(arg.serializeBinary());
|
100
|
+
}
|
101
|
+
|
102
|
+
function deserialize_bet_AxiomProcessBetRequest(buffer_arg) {
|
103
|
+
return bet_pb.AxiomProcessBetRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
104
|
+
}
|
105
|
+
|
95
106
|
function serialize_bet_BetsHistoryResponse(arg) {
|
96
107
|
if (!(arg instanceof bet_pb.BetsHistoryResponse)) {
|
97
108
|
throw new Error('Expected argument of type bet.BetsHistoryResponse');
|
@@ -275,6 +286,17 @@ axiomGetAuthHash: {
|
|
275
286
|
responseSerialize: serialize_bet_AxiomBetStatusResponse,
|
276
287
|
responseDeserialize: deserialize_bet_AxiomBetStatusResponse,
|
277
288
|
},
|
289
|
+
axiomProcessBet: {
|
290
|
+
path: '/bet.Bet/axiomProcessBet',
|
291
|
+
requestStream: false,
|
292
|
+
responseStream: false,
|
293
|
+
requestType: bet_pb.AxiomProcessBetRequest,
|
294
|
+
responseType: bet_pb.AxiomBetStatusResponse,
|
295
|
+
requestSerialize: serialize_bet_AxiomProcessBetRequest,
|
296
|
+
requestDeserialize: deserialize_bet_AxiomProcessBetRequest,
|
297
|
+
responseSerialize: serialize_bet_AxiomBetStatusResponse,
|
298
|
+
responseDeserialize: deserialize_bet_AxiomBetStatusResponse,
|
299
|
+
},
|
278
300
|
};
|
279
301
|
|
280
302
|
exports.BetClient = grpc.makeGenericClientConstructor(BetService, 'Bet');
|
package/bet/bet_pb.js
CHANGED
@@ -29,6 +29,7 @@ goog.exportSymbol('proto.bet.AxiomCheckSessionResponse', null, global);
|
|
29
29
|
goog.exportSymbol('proto.bet.AxiomCreateBetRequest', null, global);
|
30
30
|
goog.exportSymbol('proto.bet.AxiomGetBetsRequest', null, global);
|
31
31
|
goog.exportSymbol('proto.bet.AxiomGetHashRequest', null, global);
|
32
|
+
goog.exportSymbol('proto.bet.AxiomProcessBetRequest', null, global);
|
32
33
|
goog.exportSymbol('proto.bet.BetsHistoryResponse', null, global);
|
33
34
|
goog.exportSymbol('proto.bet.DashboardGameInfo', null, global);
|
34
35
|
goog.exportSymbol('proto.bet.DashboardRequest', null, global);
|
@@ -418,6 +419,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
418
419
|
*/
|
419
420
|
proto.bet.AxiomCreateBetRequest.displayName = 'proto.bet.AxiomCreateBetRequest';
|
420
421
|
}
|
422
|
+
/**
|
423
|
+
* Generated by JsPbCodeGenerator.
|
424
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
425
|
+
* server response, or constructed directly in Javascript. The array is used
|
426
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
427
|
+
* If no data is provided, the constructed object will be empty, but still
|
428
|
+
* valid.
|
429
|
+
* @extends {jspb.Message}
|
430
|
+
* @constructor
|
431
|
+
*/
|
432
|
+
proto.bet.AxiomProcessBetRequest = function(opt_data) {
|
433
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
434
|
+
};
|
435
|
+
goog.inherits(proto.bet.AxiomProcessBetRequest, jspb.Message);
|
436
|
+
if (goog.DEBUG && !COMPILED) {
|
437
|
+
/**
|
438
|
+
* @public
|
439
|
+
* @override
|
440
|
+
*/
|
441
|
+
proto.bet.AxiomProcessBetRequest.displayName = 'proto.bet.AxiomProcessBetRequest';
|
442
|
+
}
|
421
443
|
/**
|
422
444
|
* Generated by JsPbCodeGenerator.
|
423
445
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
@@ -6097,6 +6119,226 @@ proto.bet.AxiomCreateBetRequest.prototype.hasBonusType = function() {
|
|
6097
6119
|
|
6098
6120
|
|
6099
6121
|
|
6122
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
6123
|
+
/**
|
6124
|
+
* Creates an object representation of this proto.
|
6125
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
6126
|
+
* Optional fields that are not set will be set to undefined.
|
6127
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
6128
|
+
* For the list of reserved names please see:
|
6129
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
6130
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
6131
|
+
* JSPB instance for transitional soy proto support:
|
6132
|
+
* http://goto/soy-param-migration
|
6133
|
+
* @return {!Object}
|
6134
|
+
*/
|
6135
|
+
proto.bet.AxiomProcessBetRequest.prototype.toObject = function(opt_includeInstance) {
|
6136
|
+
return proto.bet.AxiomProcessBetRequest.toObject(opt_includeInstance, this);
|
6137
|
+
};
|
6138
|
+
|
6139
|
+
|
6140
|
+
/**
|
6141
|
+
* Static version of the {@see toObject} method.
|
6142
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
6143
|
+
* the JSPB instance for transitional soy proto support:
|
6144
|
+
* http://goto/soy-param-migration
|
6145
|
+
* @param {!proto.bet.AxiomProcessBetRequest} msg The msg instance to transform.
|
6146
|
+
* @return {!Object}
|
6147
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
6148
|
+
*/
|
6149
|
+
proto.bet.AxiomProcessBetRequest.toObject = function(includeInstance, msg) {
|
6150
|
+
var f, obj = {
|
6151
|
+
amount: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
|
6152
|
+
bid: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
6153
|
+
userId: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
6154
|
+
hash: jspb.Message.getFieldWithDefault(msg, 4, "")
|
6155
|
+
};
|
6156
|
+
|
6157
|
+
if (includeInstance) {
|
6158
|
+
obj.$jspbMessageInstance = msg;
|
6159
|
+
}
|
6160
|
+
return obj;
|
6161
|
+
};
|
6162
|
+
}
|
6163
|
+
|
6164
|
+
|
6165
|
+
/**
|
6166
|
+
* Deserializes binary data (in protobuf wire format).
|
6167
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
6168
|
+
* @return {!proto.bet.AxiomProcessBetRequest}
|
6169
|
+
*/
|
6170
|
+
proto.bet.AxiomProcessBetRequest.deserializeBinary = function(bytes) {
|
6171
|
+
var reader = new jspb.BinaryReader(bytes);
|
6172
|
+
var msg = new proto.bet.AxiomProcessBetRequest;
|
6173
|
+
return proto.bet.AxiomProcessBetRequest.deserializeBinaryFromReader(msg, reader);
|
6174
|
+
};
|
6175
|
+
|
6176
|
+
|
6177
|
+
/**
|
6178
|
+
* Deserializes binary data (in protobuf wire format) from the
|
6179
|
+
* given reader into the given message object.
|
6180
|
+
* @param {!proto.bet.AxiomProcessBetRequest} msg The message object to deserialize into.
|
6181
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
6182
|
+
* @return {!proto.bet.AxiomProcessBetRequest}
|
6183
|
+
*/
|
6184
|
+
proto.bet.AxiomProcessBetRequest.deserializeBinaryFromReader = function(msg, reader) {
|
6185
|
+
while (reader.nextField()) {
|
6186
|
+
if (reader.isEndGroup()) {
|
6187
|
+
break;
|
6188
|
+
}
|
6189
|
+
var field = reader.getFieldNumber();
|
6190
|
+
switch (field) {
|
6191
|
+
case 1:
|
6192
|
+
var value = /** @type {number} */ (reader.readFloat());
|
6193
|
+
msg.setAmount(value);
|
6194
|
+
break;
|
6195
|
+
case 2:
|
6196
|
+
var value = /** @type {string} */ (reader.readString());
|
6197
|
+
msg.setBid(value);
|
6198
|
+
break;
|
6199
|
+
case 3:
|
6200
|
+
var value = /** @type {number} */ (reader.readInt32());
|
6201
|
+
msg.setUserId(value);
|
6202
|
+
break;
|
6203
|
+
case 4:
|
6204
|
+
var value = /** @type {string} */ (reader.readString());
|
6205
|
+
msg.setHash(value);
|
6206
|
+
break;
|
6207
|
+
default:
|
6208
|
+
reader.skipField();
|
6209
|
+
break;
|
6210
|
+
}
|
6211
|
+
}
|
6212
|
+
return msg;
|
6213
|
+
};
|
6214
|
+
|
6215
|
+
|
6216
|
+
/**
|
6217
|
+
* Serializes the message to binary data (in protobuf wire format).
|
6218
|
+
* @return {!Uint8Array}
|
6219
|
+
*/
|
6220
|
+
proto.bet.AxiomProcessBetRequest.prototype.serializeBinary = function() {
|
6221
|
+
var writer = new jspb.BinaryWriter();
|
6222
|
+
proto.bet.AxiomProcessBetRequest.serializeBinaryToWriter(this, writer);
|
6223
|
+
return writer.getResultBuffer();
|
6224
|
+
};
|
6225
|
+
|
6226
|
+
|
6227
|
+
/**
|
6228
|
+
* Serializes the given message to binary data (in protobuf wire
|
6229
|
+
* format), writing to the given BinaryWriter.
|
6230
|
+
* @param {!proto.bet.AxiomProcessBetRequest} message
|
6231
|
+
* @param {!jspb.BinaryWriter} writer
|
6232
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
6233
|
+
*/
|
6234
|
+
proto.bet.AxiomProcessBetRequest.serializeBinaryToWriter = function(message, writer) {
|
6235
|
+
var f = undefined;
|
6236
|
+
f = message.getAmount();
|
6237
|
+
if (f !== 0.0) {
|
6238
|
+
writer.writeFloat(
|
6239
|
+
1,
|
6240
|
+
f
|
6241
|
+
);
|
6242
|
+
}
|
6243
|
+
f = message.getBid();
|
6244
|
+
if (f.length > 0) {
|
6245
|
+
writer.writeString(
|
6246
|
+
2,
|
6247
|
+
f
|
6248
|
+
);
|
6249
|
+
}
|
6250
|
+
f = message.getUserId();
|
6251
|
+
if (f !== 0) {
|
6252
|
+
writer.writeInt32(
|
6253
|
+
3,
|
6254
|
+
f
|
6255
|
+
);
|
6256
|
+
}
|
6257
|
+
f = message.getHash();
|
6258
|
+
if (f.length > 0) {
|
6259
|
+
writer.writeString(
|
6260
|
+
4,
|
6261
|
+
f
|
6262
|
+
);
|
6263
|
+
}
|
6264
|
+
};
|
6265
|
+
|
6266
|
+
|
6267
|
+
/**
|
6268
|
+
* optional float amount = 1;
|
6269
|
+
* @return {number}
|
6270
|
+
*/
|
6271
|
+
proto.bet.AxiomProcessBetRequest.prototype.getAmount = function() {
|
6272
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
|
6273
|
+
};
|
6274
|
+
|
6275
|
+
|
6276
|
+
/**
|
6277
|
+
* @param {number} value
|
6278
|
+
* @return {!proto.bet.AxiomProcessBetRequest} returns this
|
6279
|
+
*/
|
6280
|
+
proto.bet.AxiomProcessBetRequest.prototype.setAmount = function(value) {
|
6281
|
+
return jspb.Message.setProto3FloatField(this, 1, value);
|
6282
|
+
};
|
6283
|
+
|
6284
|
+
|
6285
|
+
/**
|
6286
|
+
* optional string bid = 2;
|
6287
|
+
* @return {string}
|
6288
|
+
*/
|
6289
|
+
proto.bet.AxiomProcessBetRequest.prototype.getBid = function() {
|
6290
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
6291
|
+
};
|
6292
|
+
|
6293
|
+
|
6294
|
+
/**
|
6295
|
+
* @param {string} value
|
6296
|
+
* @return {!proto.bet.AxiomProcessBetRequest} returns this
|
6297
|
+
*/
|
6298
|
+
proto.bet.AxiomProcessBetRequest.prototype.setBid = function(value) {
|
6299
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
6300
|
+
};
|
6301
|
+
|
6302
|
+
|
6303
|
+
/**
|
6304
|
+
* optional int32 user_id = 3;
|
6305
|
+
* @return {number}
|
6306
|
+
*/
|
6307
|
+
proto.bet.AxiomProcessBetRequest.prototype.getUserId = function() {
|
6308
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
6309
|
+
};
|
6310
|
+
|
6311
|
+
|
6312
|
+
/**
|
6313
|
+
* @param {number} value
|
6314
|
+
* @return {!proto.bet.AxiomProcessBetRequest} returns this
|
6315
|
+
*/
|
6316
|
+
proto.bet.AxiomProcessBetRequest.prototype.setUserId = function(value) {
|
6317
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
6318
|
+
};
|
6319
|
+
|
6320
|
+
|
6321
|
+
/**
|
6322
|
+
* optional string hash = 4;
|
6323
|
+
* @return {string}
|
6324
|
+
*/
|
6325
|
+
proto.bet.AxiomProcessBetRequest.prototype.getHash = function() {
|
6326
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
6327
|
+
};
|
6328
|
+
|
6329
|
+
|
6330
|
+
/**
|
6331
|
+
* @param {string} value
|
6332
|
+
* @return {!proto.bet.AxiomProcessBetRequest} returns this
|
6333
|
+
*/
|
6334
|
+
proto.bet.AxiomProcessBetRequest.prototype.setHash = function(value) {
|
6335
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
6336
|
+
};
|
6337
|
+
|
6338
|
+
|
6339
|
+
|
6340
|
+
|
6341
|
+
|
6100
6342
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
6101
6343
|
/**
|
6102
6344
|
* Creates an object representation of this proto.
|
package/package.json
CHANGED
package/user/user.proto
CHANGED
package/user/user_pb.js
CHANGED
@@ -9222,7 +9222,8 @@ proto.user.UserActionRequest.toObject = function(includeInstance, msg) {
|
|
9222
9222
|
var f, obj = {
|
9223
9223
|
userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
9224
9224
|
actionAmount: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
|
9225
|
-
balanceType: jspb.Message.getFieldWithDefault(msg, 3, "")
|
9225
|
+
balanceType: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
9226
|
+
actionType: jspb.Message.getFieldWithDefault(msg, 4, "")
|
9226
9227
|
};
|
9227
9228
|
|
9228
9229
|
if (includeInstance) {
|
@@ -9271,6 +9272,10 @@ proto.user.UserActionRequest.deserializeBinaryFromReader = function(msg, reader)
|
|
9271
9272
|
var value = /** @type {string} */ (reader.readString());
|
9272
9273
|
msg.setBalanceType(value);
|
9273
9274
|
break;
|
9275
|
+
case 4:
|
9276
|
+
var value = /** @type {string} */ (reader.readString());
|
9277
|
+
msg.setActionType(value);
|
9278
|
+
break;
|
9274
9279
|
default:
|
9275
9280
|
reader.skipField();
|
9276
9281
|
break;
|
@@ -9321,6 +9326,13 @@ proto.user.UserActionRequest.serializeBinaryToWriter = function(message, writer)
|
|
9321
9326
|
f
|
9322
9327
|
);
|
9323
9328
|
}
|
9329
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
9330
|
+
if (f != null) {
|
9331
|
+
writer.writeString(
|
9332
|
+
4,
|
9333
|
+
f
|
9334
|
+
);
|
9335
|
+
}
|
9324
9336
|
};
|
9325
9337
|
|
9326
9338
|
|
@@ -9396,6 +9408,42 @@ proto.user.UserActionRequest.prototype.hasBalanceType = function() {
|
|
9396
9408
|
};
|
9397
9409
|
|
9398
9410
|
|
9411
|
+
/**
|
9412
|
+
* optional string action_type = 4;
|
9413
|
+
* @return {string}
|
9414
|
+
*/
|
9415
|
+
proto.user.UserActionRequest.prototype.getActionType = function() {
|
9416
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
9417
|
+
};
|
9418
|
+
|
9419
|
+
|
9420
|
+
/**
|
9421
|
+
* @param {string} value
|
9422
|
+
* @return {!proto.user.UserActionRequest} returns this
|
9423
|
+
*/
|
9424
|
+
proto.user.UserActionRequest.prototype.setActionType = function(value) {
|
9425
|
+
return jspb.Message.setField(this, 4, value);
|
9426
|
+
};
|
9427
|
+
|
9428
|
+
|
9429
|
+
/**
|
9430
|
+
* Clears the field making it undefined.
|
9431
|
+
* @return {!proto.user.UserActionRequest} returns this
|
9432
|
+
*/
|
9433
|
+
proto.user.UserActionRequest.prototype.clearActionType = function() {
|
9434
|
+
return jspb.Message.setField(this, 4, undefined);
|
9435
|
+
};
|
9436
|
+
|
9437
|
+
|
9438
|
+
/**
|
9439
|
+
* Returns whether this field is set.
|
9440
|
+
* @return {boolean}
|
9441
|
+
*/
|
9442
|
+
proto.user.UserActionRequest.prototype.hasActionType = function() {
|
9443
|
+
return jspb.Message.getField(this, 4) != null;
|
9444
|
+
};
|
9445
|
+
|
9446
|
+
|
9399
9447
|
|
9400
9448
|
|
9401
9449
|
|