protobuf-platform 1.0.257 → 1.0.259
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/analytic/analytic.proto +1 -0
- package/analytic/analytic_pb.js +49 -1
- package/package.json +1 -1
- package/payment/payment.proto +4 -0
- package/payment/payment_grpc_pb.js +22 -0
- package/payment/payment_pb.js +180 -0
package/analytic/analytic.proto
CHANGED
package/analytic/analytic_pb.js
CHANGED
@@ -702,7 +702,8 @@ proto.analytic.GlobalSearchRequest.toObject = function(includeInstance, msg) {
|
|
702
702
|
var f, obj = {
|
703
703
|
startDate: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
704
704
|
endDate: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
705
|
-
period: jspb.Message.getFieldWithDefault(msg, 3, "")
|
705
|
+
period: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
706
|
+
type: jspb.Message.getFieldWithDefault(msg, 4, "")
|
706
707
|
};
|
707
708
|
|
708
709
|
if (includeInstance) {
|
@@ -751,6 +752,10 @@ proto.analytic.GlobalSearchRequest.deserializeBinaryFromReader = function(msg, r
|
|
751
752
|
var value = /** @type {string} */ (reader.readString());
|
752
753
|
msg.setPeriod(value);
|
753
754
|
break;
|
755
|
+
case 4:
|
756
|
+
var value = /** @type {string} */ (reader.readString());
|
757
|
+
msg.setType(value);
|
758
|
+
break;
|
754
759
|
default:
|
755
760
|
reader.skipField();
|
756
761
|
break;
|
@@ -801,6 +806,13 @@ proto.analytic.GlobalSearchRequest.serializeBinaryToWriter = function(message, w
|
|
801
806
|
f
|
802
807
|
);
|
803
808
|
}
|
809
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
810
|
+
if (f != null) {
|
811
|
+
writer.writeString(
|
812
|
+
4,
|
813
|
+
f
|
814
|
+
);
|
815
|
+
}
|
804
816
|
};
|
805
817
|
|
806
818
|
|
@@ -912,6 +924,42 @@ proto.analytic.GlobalSearchRequest.prototype.hasPeriod = function() {
|
|
912
924
|
};
|
913
925
|
|
914
926
|
|
927
|
+
/**
|
928
|
+
* optional string type = 4;
|
929
|
+
* @return {string}
|
930
|
+
*/
|
931
|
+
proto.analytic.GlobalSearchRequest.prototype.getType = function() {
|
932
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
933
|
+
};
|
934
|
+
|
935
|
+
|
936
|
+
/**
|
937
|
+
* @param {string} value
|
938
|
+
* @return {!proto.analytic.GlobalSearchRequest} returns this
|
939
|
+
*/
|
940
|
+
proto.analytic.GlobalSearchRequest.prototype.setType = function(value) {
|
941
|
+
return jspb.Message.setField(this, 4, value);
|
942
|
+
};
|
943
|
+
|
944
|
+
|
945
|
+
/**
|
946
|
+
* Clears the field making it undefined.
|
947
|
+
* @return {!proto.analytic.GlobalSearchRequest} returns this
|
948
|
+
*/
|
949
|
+
proto.analytic.GlobalSearchRequest.prototype.clearType = function() {
|
950
|
+
return jspb.Message.setField(this, 4, undefined);
|
951
|
+
};
|
952
|
+
|
953
|
+
|
954
|
+
/**
|
955
|
+
* Returns whether this field is set.
|
956
|
+
* @return {boolean}
|
957
|
+
*/
|
958
|
+
proto.analytic.GlobalSearchRequest.prototype.hasType = function() {
|
959
|
+
return jspb.Message.getField(this, 4) != null;
|
960
|
+
};
|
961
|
+
|
962
|
+
|
915
963
|
|
916
964
|
|
917
965
|
|
package/package.json
CHANGED
package/payment/payment.proto
CHANGED
@@ -17,6 +17,7 @@ service Payment {
|
|
17
17
|
rpc updateSingleMethod(stream MethodRequest) returns (MethodResponse);
|
18
18
|
rpc deleteSingleMethod(GetMethodRequest) returns (PaymentStatusResponse);
|
19
19
|
rpc readListMethods(PaginationRequest) returns (MethodItemsResponse);
|
20
|
+
rpc readListPoorMethods(PoorMethodsRequest) returns (MethodItemsResponse);
|
20
21
|
//Deposit
|
21
22
|
rpc attemptDeposit(AttemptDepositRequest) returns (DepositResponse);
|
22
23
|
rpc changeDepositStatus(GetDepositRequest) returns (DepositResponse);
|
@@ -122,6 +123,9 @@ message MethodItemsResponse {
|
|
122
123
|
optional int32 total_pages = 2;
|
123
124
|
optional int32 total_items = 3;
|
124
125
|
}
|
126
|
+
message PoorMethodsRequest {
|
127
|
+
repeated int32 method_ids = 1;
|
128
|
+
}
|
125
129
|
//Deposit
|
126
130
|
message AttemptDepositRequest {
|
127
131
|
int32 payment_method_id = 1;
|
@@ -191,6 +191,17 @@ function deserialize_payment_PongResponse(buffer_arg) {
|
|
191
191
|
return payment_pb.PongResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
192
192
|
}
|
193
193
|
|
194
|
+
function serialize_payment_PoorMethodsRequest(arg) {
|
195
|
+
if (!(arg instanceof payment_pb.PoorMethodsRequest)) {
|
196
|
+
throw new Error('Expected argument of type payment.PoorMethodsRequest');
|
197
|
+
}
|
198
|
+
return Buffer.from(arg.serializeBinary());
|
199
|
+
}
|
200
|
+
|
201
|
+
function deserialize_payment_PoorMethodsRequest(buffer_arg) {
|
202
|
+
return payment_pb.PoorMethodsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
203
|
+
}
|
204
|
+
|
194
205
|
function serialize_payment_ProviderItemsResponse(arg) {
|
195
206
|
if (!(arg instanceof payment_pb.ProviderItemsResponse)) {
|
196
207
|
throw new Error('Expected argument of type payment.ProviderItemsResponse');
|
@@ -382,6 +393,17 @@ createSingleMethod: {
|
|
382
393
|
responseSerialize: serialize_payment_MethodItemsResponse,
|
383
394
|
responseDeserialize: deserialize_payment_MethodItemsResponse,
|
384
395
|
},
|
396
|
+
readListPoorMethods: {
|
397
|
+
path: '/payment.Payment/readListPoorMethods',
|
398
|
+
requestStream: false,
|
399
|
+
responseStream: false,
|
400
|
+
requestType: payment_pb.PoorMethodsRequest,
|
401
|
+
responseType: payment_pb.MethodItemsResponse,
|
402
|
+
requestSerialize: serialize_payment_PoorMethodsRequest,
|
403
|
+
requestDeserialize: deserialize_payment_PoorMethodsRequest,
|
404
|
+
responseSerialize: serialize_payment_MethodItemsResponse,
|
405
|
+
responseDeserialize: deserialize_payment_MethodItemsResponse,
|
406
|
+
},
|
385
407
|
// Deposit
|
386
408
|
attemptDeposit: {
|
387
409
|
path: '/payment.Payment/attemptDeposit',
|
package/payment/payment_pb.js
CHANGED
@@ -44,6 +44,7 @@ goog.exportSymbol('proto.payment.PaymentSearchRequest', null, global);
|
|
44
44
|
goog.exportSymbol('proto.payment.PaymentStatusResponse', null, global);
|
45
45
|
goog.exportSymbol('proto.payment.PingRequest', null, global);
|
46
46
|
goog.exportSymbol('proto.payment.PongResponse', null, global);
|
47
|
+
goog.exportSymbol('proto.payment.PoorMethodsRequest', null, global);
|
47
48
|
goog.exportSymbol('proto.payment.ProviderItem', null, global);
|
48
49
|
goog.exportSymbol('proto.payment.ProviderItemRequest', null, global);
|
49
50
|
goog.exportSymbol('proto.payment.ProviderItemsResponse', null, global);
|
@@ -452,6 +453,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
452
453
|
*/
|
453
454
|
proto.payment.MethodItemsResponse.displayName = 'proto.payment.MethodItemsResponse';
|
454
455
|
}
|
456
|
+
/**
|
457
|
+
* Generated by JsPbCodeGenerator.
|
458
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
459
|
+
* server response, or constructed directly in Javascript. The array is used
|
460
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
461
|
+
* If no data is provided, the constructed object will be empty, but still
|
462
|
+
* valid.
|
463
|
+
* @extends {jspb.Message}
|
464
|
+
* @constructor
|
465
|
+
*/
|
466
|
+
proto.payment.PoorMethodsRequest = function(opt_data) {
|
467
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.payment.PoorMethodsRequest.repeatedFields_, null);
|
468
|
+
};
|
469
|
+
goog.inherits(proto.payment.PoorMethodsRequest, jspb.Message);
|
470
|
+
if (goog.DEBUG && !COMPILED) {
|
471
|
+
/**
|
472
|
+
* @public
|
473
|
+
* @override
|
474
|
+
*/
|
475
|
+
proto.payment.PoorMethodsRequest.displayName = 'proto.payment.PoorMethodsRequest';
|
476
|
+
}
|
455
477
|
/**
|
456
478
|
* Generated by JsPbCodeGenerator.
|
457
479
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
@@ -5486,6 +5508,164 @@ proto.payment.MethodItemsResponse.prototype.hasTotalItems = function() {
|
|
5486
5508
|
|
5487
5509
|
|
5488
5510
|
|
5511
|
+
/**
|
5512
|
+
* List of repeated fields within this message type.
|
5513
|
+
* @private {!Array<number>}
|
5514
|
+
* @const
|
5515
|
+
*/
|
5516
|
+
proto.payment.PoorMethodsRequest.repeatedFields_ = [1];
|
5517
|
+
|
5518
|
+
|
5519
|
+
|
5520
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
5521
|
+
/**
|
5522
|
+
* Creates an object representation of this proto.
|
5523
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
5524
|
+
* Optional fields that are not set will be set to undefined.
|
5525
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
5526
|
+
* For the list of reserved names please see:
|
5527
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
5528
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
5529
|
+
* JSPB instance for transitional soy proto support:
|
5530
|
+
* http://goto/soy-param-migration
|
5531
|
+
* @return {!Object}
|
5532
|
+
*/
|
5533
|
+
proto.payment.PoorMethodsRequest.prototype.toObject = function(opt_includeInstance) {
|
5534
|
+
return proto.payment.PoorMethodsRequest.toObject(opt_includeInstance, this);
|
5535
|
+
};
|
5536
|
+
|
5537
|
+
|
5538
|
+
/**
|
5539
|
+
* Static version of the {@see toObject} method.
|
5540
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
5541
|
+
* the JSPB instance for transitional soy proto support:
|
5542
|
+
* http://goto/soy-param-migration
|
5543
|
+
* @param {!proto.payment.PoorMethodsRequest} msg The msg instance to transform.
|
5544
|
+
* @return {!Object}
|
5545
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
5546
|
+
*/
|
5547
|
+
proto.payment.PoorMethodsRequest.toObject = function(includeInstance, msg) {
|
5548
|
+
var f, obj = {
|
5549
|
+
methodIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
|
5550
|
+
};
|
5551
|
+
|
5552
|
+
if (includeInstance) {
|
5553
|
+
obj.$jspbMessageInstance = msg;
|
5554
|
+
}
|
5555
|
+
return obj;
|
5556
|
+
};
|
5557
|
+
}
|
5558
|
+
|
5559
|
+
|
5560
|
+
/**
|
5561
|
+
* Deserializes binary data (in protobuf wire format).
|
5562
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
5563
|
+
* @return {!proto.payment.PoorMethodsRequest}
|
5564
|
+
*/
|
5565
|
+
proto.payment.PoorMethodsRequest.deserializeBinary = function(bytes) {
|
5566
|
+
var reader = new jspb.BinaryReader(bytes);
|
5567
|
+
var msg = new proto.payment.PoorMethodsRequest;
|
5568
|
+
return proto.payment.PoorMethodsRequest.deserializeBinaryFromReader(msg, reader);
|
5569
|
+
};
|
5570
|
+
|
5571
|
+
|
5572
|
+
/**
|
5573
|
+
* Deserializes binary data (in protobuf wire format) from the
|
5574
|
+
* given reader into the given message object.
|
5575
|
+
* @param {!proto.payment.PoorMethodsRequest} msg The message object to deserialize into.
|
5576
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
5577
|
+
* @return {!proto.payment.PoorMethodsRequest}
|
5578
|
+
*/
|
5579
|
+
proto.payment.PoorMethodsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
5580
|
+
while (reader.nextField()) {
|
5581
|
+
if (reader.isEndGroup()) {
|
5582
|
+
break;
|
5583
|
+
}
|
5584
|
+
var field = reader.getFieldNumber();
|
5585
|
+
switch (field) {
|
5586
|
+
case 1:
|
5587
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
|
5588
|
+
for (var i = 0; i < values.length; i++) {
|
5589
|
+
msg.addMethodIds(values[i]);
|
5590
|
+
}
|
5591
|
+
break;
|
5592
|
+
default:
|
5593
|
+
reader.skipField();
|
5594
|
+
break;
|
5595
|
+
}
|
5596
|
+
}
|
5597
|
+
return msg;
|
5598
|
+
};
|
5599
|
+
|
5600
|
+
|
5601
|
+
/**
|
5602
|
+
* Serializes the message to binary data (in protobuf wire format).
|
5603
|
+
* @return {!Uint8Array}
|
5604
|
+
*/
|
5605
|
+
proto.payment.PoorMethodsRequest.prototype.serializeBinary = function() {
|
5606
|
+
var writer = new jspb.BinaryWriter();
|
5607
|
+
proto.payment.PoorMethodsRequest.serializeBinaryToWriter(this, writer);
|
5608
|
+
return writer.getResultBuffer();
|
5609
|
+
};
|
5610
|
+
|
5611
|
+
|
5612
|
+
/**
|
5613
|
+
* Serializes the given message to binary data (in protobuf wire
|
5614
|
+
* format), writing to the given BinaryWriter.
|
5615
|
+
* @param {!proto.payment.PoorMethodsRequest} message
|
5616
|
+
* @param {!jspb.BinaryWriter} writer
|
5617
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
5618
|
+
*/
|
5619
|
+
proto.payment.PoorMethodsRequest.serializeBinaryToWriter = function(message, writer) {
|
5620
|
+
var f = undefined;
|
5621
|
+
f = message.getMethodIdsList();
|
5622
|
+
if (f.length > 0) {
|
5623
|
+
writer.writePackedInt32(
|
5624
|
+
1,
|
5625
|
+
f
|
5626
|
+
);
|
5627
|
+
}
|
5628
|
+
};
|
5629
|
+
|
5630
|
+
|
5631
|
+
/**
|
5632
|
+
* repeated int32 method_ids = 1;
|
5633
|
+
* @return {!Array<number>}
|
5634
|
+
*/
|
5635
|
+
proto.payment.PoorMethodsRequest.prototype.getMethodIdsList = function() {
|
5636
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
|
5637
|
+
};
|
5638
|
+
|
5639
|
+
|
5640
|
+
/**
|
5641
|
+
* @param {!Array<number>} value
|
5642
|
+
* @return {!proto.payment.PoorMethodsRequest} returns this
|
5643
|
+
*/
|
5644
|
+
proto.payment.PoorMethodsRequest.prototype.setMethodIdsList = function(value) {
|
5645
|
+
return jspb.Message.setField(this, 1, value || []);
|
5646
|
+
};
|
5647
|
+
|
5648
|
+
|
5649
|
+
/**
|
5650
|
+
* @param {number} value
|
5651
|
+
* @param {number=} opt_index
|
5652
|
+
* @return {!proto.payment.PoorMethodsRequest} returns this
|
5653
|
+
*/
|
5654
|
+
proto.payment.PoorMethodsRequest.prototype.addMethodIds = function(value, opt_index) {
|
5655
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
5656
|
+
};
|
5657
|
+
|
5658
|
+
|
5659
|
+
/**
|
5660
|
+
* Clears the list making it empty but non-null.
|
5661
|
+
* @return {!proto.payment.PoorMethodsRequest} returns this
|
5662
|
+
*/
|
5663
|
+
proto.payment.PoorMethodsRequest.prototype.clearMethodIdsList = function() {
|
5664
|
+
return this.setMethodIdsList([]);
|
5665
|
+
};
|
5666
|
+
|
5667
|
+
|
5668
|
+
|
5489
5669
|
|
5490
5670
|
|
5491
5671
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|