protobuf-platform 1.2.504 → 1.2.505
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 -0
- package/bonus/bonus_pb.js +145 -1
- package/package.json +1 -1
- package/payment/payment.proto +23 -0
- package/payment/payment_grpc_pb.js +34 -0
- package/payment/payment_pb.js +1090 -0
- package/tournament/tournament.proto +25 -0
- package/tournament/tournament_grpc_pb.js +34 -0
- package/tournament/tournament_pb.js +1186 -0
package/bonus/bonus.proto
CHANGED
|
@@ -271,6 +271,9 @@ message BonusSnapshotItem {
|
|
|
271
271
|
optional string mobile_image_cdn = 7;
|
|
272
272
|
optional string status = 8;
|
|
273
273
|
optional int32 status_id = 9;
|
|
274
|
+
optional string description = 10;
|
|
275
|
+
optional string started_at = 11;
|
|
276
|
+
optional string finished_at = 12;
|
|
274
277
|
}
|
|
275
278
|
message BonusSnapshotItemsResponse {
|
|
276
279
|
repeated BonusSnapshotItem items = 1;
|
package/bonus/bonus_pb.js
CHANGED
|
@@ -10931,7 +10931,10 @@ proto.bonus.BonusSnapshotItem.toObject = function(includeInstance, msg) {
|
|
|
10931
10931
|
mobileImage: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
10932
10932
|
mobileImageCdn: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
10933
10933
|
status: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
10934
|
-
statusId: jspb.Message.getFieldWithDefault(msg, 9, 0)
|
|
10934
|
+
statusId: jspb.Message.getFieldWithDefault(msg, 9, 0),
|
|
10935
|
+
description: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
10936
|
+
startedAt: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
|
10937
|
+
finishedAt: jspb.Message.getFieldWithDefault(msg, 12, "")
|
|
10935
10938
|
};
|
|
10936
10939
|
|
|
10937
10940
|
if (includeInstance) {
|
|
@@ -11004,6 +11007,18 @@ proto.bonus.BonusSnapshotItem.deserializeBinaryFromReader = function(msg, reader
|
|
|
11004
11007
|
var value = /** @type {number} */ (reader.readInt32());
|
|
11005
11008
|
msg.setStatusId(value);
|
|
11006
11009
|
break;
|
|
11010
|
+
case 10:
|
|
11011
|
+
var value = /** @type {string} */ (reader.readString());
|
|
11012
|
+
msg.setDescription(value);
|
|
11013
|
+
break;
|
|
11014
|
+
case 11:
|
|
11015
|
+
var value = /** @type {string} */ (reader.readString());
|
|
11016
|
+
msg.setStartedAt(value);
|
|
11017
|
+
break;
|
|
11018
|
+
case 12:
|
|
11019
|
+
var value = /** @type {string} */ (reader.readString());
|
|
11020
|
+
msg.setFinishedAt(value);
|
|
11021
|
+
break;
|
|
11007
11022
|
default:
|
|
11008
11023
|
reader.skipField();
|
|
11009
11024
|
break;
|
|
@@ -11096,6 +11111,27 @@ proto.bonus.BonusSnapshotItem.serializeBinaryToWriter = function(message, writer
|
|
|
11096
11111
|
f
|
|
11097
11112
|
);
|
|
11098
11113
|
}
|
|
11114
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 10));
|
|
11115
|
+
if (f != null) {
|
|
11116
|
+
writer.writeString(
|
|
11117
|
+
10,
|
|
11118
|
+
f
|
|
11119
|
+
);
|
|
11120
|
+
}
|
|
11121
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 11));
|
|
11122
|
+
if (f != null) {
|
|
11123
|
+
writer.writeString(
|
|
11124
|
+
11,
|
|
11125
|
+
f
|
|
11126
|
+
);
|
|
11127
|
+
}
|
|
11128
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 12));
|
|
11129
|
+
if (f != null) {
|
|
11130
|
+
writer.writeString(
|
|
11131
|
+
12,
|
|
11132
|
+
f
|
|
11133
|
+
);
|
|
11134
|
+
}
|
|
11099
11135
|
};
|
|
11100
11136
|
|
|
11101
11137
|
|
|
@@ -11405,6 +11441,114 @@ proto.bonus.BonusSnapshotItem.prototype.hasStatusId = function() {
|
|
|
11405
11441
|
};
|
|
11406
11442
|
|
|
11407
11443
|
|
|
11444
|
+
/**
|
|
11445
|
+
* optional string description = 10;
|
|
11446
|
+
* @return {string}
|
|
11447
|
+
*/
|
|
11448
|
+
proto.bonus.BonusSnapshotItem.prototype.getDescription = function() {
|
|
11449
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
|
11450
|
+
};
|
|
11451
|
+
|
|
11452
|
+
|
|
11453
|
+
/**
|
|
11454
|
+
* @param {string} value
|
|
11455
|
+
* @return {!proto.bonus.BonusSnapshotItem} returns this
|
|
11456
|
+
*/
|
|
11457
|
+
proto.bonus.BonusSnapshotItem.prototype.setDescription = function(value) {
|
|
11458
|
+
return jspb.Message.setField(this, 10, value);
|
|
11459
|
+
};
|
|
11460
|
+
|
|
11461
|
+
|
|
11462
|
+
/**
|
|
11463
|
+
* Clears the field making it undefined.
|
|
11464
|
+
* @return {!proto.bonus.BonusSnapshotItem} returns this
|
|
11465
|
+
*/
|
|
11466
|
+
proto.bonus.BonusSnapshotItem.prototype.clearDescription = function() {
|
|
11467
|
+
return jspb.Message.setField(this, 10, undefined);
|
|
11468
|
+
};
|
|
11469
|
+
|
|
11470
|
+
|
|
11471
|
+
/**
|
|
11472
|
+
* Returns whether this field is set.
|
|
11473
|
+
* @return {boolean}
|
|
11474
|
+
*/
|
|
11475
|
+
proto.bonus.BonusSnapshotItem.prototype.hasDescription = function() {
|
|
11476
|
+
return jspb.Message.getField(this, 10) != null;
|
|
11477
|
+
};
|
|
11478
|
+
|
|
11479
|
+
|
|
11480
|
+
/**
|
|
11481
|
+
* optional string started_at = 11;
|
|
11482
|
+
* @return {string}
|
|
11483
|
+
*/
|
|
11484
|
+
proto.bonus.BonusSnapshotItem.prototype.getStartedAt = function() {
|
|
11485
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
|
|
11486
|
+
};
|
|
11487
|
+
|
|
11488
|
+
|
|
11489
|
+
/**
|
|
11490
|
+
* @param {string} value
|
|
11491
|
+
* @return {!proto.bonus.BonusSnapshotItem} returns this
|
|
11492
|
+
*/
|
|
11493
|
+
proto.bonus.BonusSnapshotItem.prototype.setStartedAt = function(value) {
|
|
11494
|
+
return jspb.Message.setField(this, 11, value);
|
|
11495
|
+
};
|
|
11496
|
+
|
|
11497
|
+
|
|
11498
|
+
/**
|
|
11499
|
+
* Clears the field making it undefined.
|
|
11500
|
+
* @return {!proto.bonus.BonusSnapshotItem} returns this
|
|
11501
|
+
*/
|
|
11502
|
+
proto.bonus.BonusSnapshotItem.prototype.clearStartedAt = function() {
|
|
11503
|
+
return jspb.Message.setField(this, 11, undefined);
|
|
11504
|
+
};
|
|
11505
|
+
|
|
11506
|
+
|
|
11507
|
+
/**
|
|
11508
|
+
* Returns whether this field is set.
|
|
11509
|
+
* @return {boolean}
|
|
11510
|
+
*/
|
|
11511
|
+
proto.bonus.BonusSnapshotItem.prototype.hasStartedAt = function() {
|
|
11512
|
+
return jspb.Message.getField(this, 11) != null;
|
|
11513
|
+
};
|
|
11514
|
+
|
|
11515
|
+
|
|
11516
|
+
/**
|
|
11517
|
+
* optional string finished_at = 12;
|
|
11518
|
+
* @return {string}
|
|
11519
|
+
*/
|
|
11520
|
+
proto.bonus.BonusSnapshotItem.prototype.getFinishedAt = function() {
|
|
11521
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
|
|
11522
|
+
};
|
|
11523
|
+
|
|
11524
|
+
|
|
11525
|
+
/**
|
|
11526
|
+
* @param {string} value
|
|
11527
|
+
* @return {!proto.bonus.BonusSnapshotItem} returns this
|
|
11528
|
+
*/
|
|
11529
|
+
proto.bonus.BonusSnapshotItem.prototype.setFinishedAt = function(value) {
|
|
11530
|
+
return jspb.Message.setField(this, 12, value);
|
|
11531
|
+
};
|
|
11532
|
+
|
|
11533
|
+
|
|
11534
|
+
/**
|
|
11535
|
+
* Clears the field making it undefined.
|
|
11536
|
+
* @return {!proto.bonus.BonusSnapshotItem} returns this
|
|
11537
|
+
*/
|
|
11538
|
+
proto.bonus.BonusSnapshotItem.prototype.clearFinishedAt = function() {
|
|
11539
|
+
return jspb.Message.setField(this, 12, undefined);
|
|
11540
|
+
};
|
|
11541
|
+
|
|
11542
|
+
|
|
11543
|
+
/**
|
|
11544
|
+
* Returns whether this field is set.
|
|
11545
|
+
* @return {boolean}
|
|
11546
|
+
*/
|
|
11547
|
+
proto.bonus.BonusSnapshotItem.prototype.hasFinishedAt = function() {
|
|
11548
|
+
return jspb.Message.getField(this, 12) != null;
|
|
11549
|
+
};
|
|
11550
|
+
|
|
11551
|
+
|
|
11408
11552
|
|
|
11409
11553
|
/**
|
|
11410
11554
|
* List of repeated fields within this message type.
|
package/package.json
CHANGED
package/payment/payment.proto
CHANGED
|
@@ -25,6 +25,8 @@ service Payment {
|
|
|
25
25
|
rpc readPaymentMethodConfig(PaymentMethodConfigRequest) returns (PaymentMethodConfigResponse);
|
|
26
26
|
rpc readListCashierFields(CashierFieldsRequest) returns (CashierFieldItemsResponse);
|
|
27
27
|
rpc updatePaymentMethodsInBunch(ItemsBunchRequest) returns (PaymentStatusResponse);
|
|
28
|
+
// Lightweight batch read for CMS Custom Widget enrichment.
|
|
29
|
+
rpc getPaymentMethodSnapshotsByIds(GetPaymentMethodSnapshotsByIdsRequest) returns (PaymentMethodSnapshotItemsResponse);
|
|
28
30
|
//Operations
|
|
29
31
|
rpc readListOperations(PaginationRequest) returns (OperationItemsResponse);
|
|
30
32
|
rpc readSingleOperationDetails(GetOperationDetailsRequest) returns (OperationDetailsResponse);
|
|
@@ -217,6 +219,27 @@ message MethodItemsResponse {
|
|
|
217
219
|
message PoorMethodsRequest {
|
|
218
220
|
repeated int32 method_ids = 1;
|
|
219
221
|
}
|
|
222
|
+
message GetPaymentMethodSnapshotsByIdsRequest {
|
|
223
|
+
repeated int32 ids = 1;
|
|
224
|
+
}
|
|
225
|
+
message PaymentMethodSnapshotItem {
|
|
226
|
+
int32 id = 1;
|
|
227
|
+
optional string title = 2;
|
|
228
|
+
optional string code = 3;
|
|
229
|
+
optional string description = 4;
|
|
230
|
+
optional string image = 5;
|
|
231
|
+
optional string image_cdn = 6;
|
|
232
|
+
optional bool is_active = 7;
|
|
233
|
+
optional string transaction_type = 8;
|
|
234
|
+
optional string currency_type = 9;
|
|
235
|
+
optional int32 provider_id = 10;
|
|
236
|
+
optional string provider_title = 11;
|
|
237
|
+
optional string provider_image = 12;
|
|
238
|
+
optional string provider_image_cdn = 13;
|
|
239
|
+
}
|
|
240
|
+
message PaymentMethodSnapshotItemsResponse {
|
|
241
|
+
repeated PaymentMethodSnapshotItem items = 1;
|
|
242
|
+
}
|
|
220
243
|
message CashierFieldItem {
|
|
221
244
|
string code = 1;
|
|
222
245
|
optional string title = 2;
|
|
@@ -323,6 +323,17 @@ function deserialize_payment_GetOperationDetailsRequest(buffer_arg) {
|
|
|
323
323
|
return payment_pb.GetOperationDetailsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
324
324
|
}
|
|
325
325
|
|
|
326
|
+
function serialize_payment_GetPaymentMethodSnapshotsByIdsRequest(arg) {
|
|
327
|
+
if (!(arg instanceof payment_pb.GetPaymentMethodSnapshotsByIdsRequest)) {
|
|
328
|
+
throw new Error('Expected argument of type payment.GetPaymentMethodSnapshotsByIdsRequest');
|
|
329
|
+
}
|
|
330
|
+
return Buffer.from(arg.serializeBinary());
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
function deserialize_payment_GetPaymentMethodSnapshotsByIdsRequest(buffer_arg) {
|
|
334
|
+
return payment_pb.GetPaymentMethodSnapshotsByIdsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
335
|
+
}
|
|
336
|
+
|
|
326
337
|
function serialize_payment_GetProviderRequest(arg) {
|
|
327
338
|
if (!(arg instanceof payment_pb.GetProviderRequest)) {
|
|
328
339
|
throw new Error('Expected argument of type payment.GetProviderRequest');
|
|
@@ -554,6 +565,17 @@ function deserialize_payment_PaymentMethodConfigResponse(buffer_arg) {
|
|
|
554
565
|
return payment_pb.PaymentMethodConfigResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
555
566
|
}
|
|
556
567
|
|
|
568
|
+
function serialize_payment_PaymentMethodSnapshotItemsResponse(arg) {
|
|
569
|
+
if (!(arg instanceof payment_pb.PaymentMethodSnapshotItemsResponse)) {
|
|
570
|
+
throw new Error('Expected argument of type payment.PaymentMethodSnapshotItemsResponse');
|
|
571
|
+
}
|
|
572
|
+
return Buffer.from(arg.serializeBinary());
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
function deserialize_payment_PaymentMethodSnapshotItemsResponse(buffer_arg) {
|
|
576
|
+
return payment_pb.PaymentMethodSnapshotItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
577
|
+
}
|
|
578
|
+
|
|
557
579
|
function serialize_payment_PaymentStatusResponse(arg) {
|
|
558
580
|
if (!(arg instanceof payment_pb.PaymentStatusResponse)) {
|
|
559
581
|
throw new Error('Expected argument of type payment.PaymentStatusResponse');
|
|
@@ -1042,6 +1064,18 @@ createSingleMethod: {
|
|
|
1042
1064
|
responseSerialize: serialize_payment_PaymentStatusResponse,
|
|
1043
1065
|
responseDeserialize: deserialize_payment_PaymentStatusResponse,
|
|
1044
1066
|
},
|
|
1067
|
+
// Lightweight batch read for CMS Custom Widget enrichment.
|
|
1068
|
+
getPaymentMethodSnapshotsByIds: {
|
|
1069
|
+
path: '/payment.Payment/getPaymentMethodSnapshotsByIds',
|
|
1070
|
+
requestStream: false,
|
|
1071
|
+
responseStream: false,
|
|
1072
|
+
requestType: payment_pb.GetPaymentMethodSnapshotsByIdsRequest,
|
|
1073
|
+
responseType: payment_pb.PaymentMethodSnapshotItemsResponse,
|
|
1074
|
+
requestSerialize: serialize_payment_GetPaymentMethodSnapshotsByIdsRequest,
|
|
1075
|
+
requestDeserialize: deserialize_payment_GetPaymentMethodSnapshotsByIdsRequest,
|
|
1076
|
+
responseSerialize: serialize_payment_PaymentMethodSnapshotItemsResponse,
|
|
1077
|
+
responseDeserialize: deserialize_payment_PaymentMethodSnapshotItemsResponse,
|
|
1078
|
+
},
|
|
1045
1079
|
// Operations
|
|
1046
1080
|
readListOperations: {
|
|
1047
1081
|
path: '/payment.Payment/readListOperations',
|