@sniipwebmaster/kyc-client-grpcweb 26.5.2131 → 26.5.2142

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.
@@ -23,6 +23,8 @@ grpc.web = require('grpc-web');
23
23
  var google_api_annotations_pb = require('./google/api/annotations_pb.js')
24
24
 
25
25
  var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js')
26
+
27
+ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js')
26
28
  const proto = {};
27
29
  proto.kycserviceapi = require('./service_pb.js');
28
30
 
@@ -1420,5 +1422,66 @@ proto.kycserviceapi.KYCServiceAPIServicePromiseClient.prototype.updateKycRequest
1420
1422
  };
1421
1423
 
1422
1424
 
1425
+ /**
1426
+ * @const
1427
+ * @type {!grpc.web.MethodDescriptor<
1428
+ * !proto.google.protobuf.Empty,
1429
+ * !proto.kycserviceapi.VerificationThresholds>}
1430
+ */
1431
+ const methodDescriptor_KYCServiceAPIService_GetVerificationThresholds = new grpc.web.MethodDescriptor(
1432
+ '/kycserviceapi.KYCServiceAPIService/GetVerificationThresholds',
1433
+ grpc.web.MethodType.UNARY,
1434
+ google_protobuf_empty_pb.Empty,
1435
+ proto.kycserviceapi.VerificationThresholds,
1436
+ /**
1437
+ * @param {!proto.google.protobuf.Empty} request
1438
+ * @return {!Uint8Array}
1439
+ */
1440
+ function(request) {
1441
+ return request.serializeBinary();
1442
+ },
1443
+ proto.kycserviceapi.VerificationThresholds.deserializeBinary
1444
+ );
1445
+
1446
+
1447
+ /**
1448
+ * @param {!proto.google.protobuf.Empty} request The
1449
+ * request proto
1450
+ * @param {?Object<string, string>} metadata User defined
1451
+ * call metadata
1452
+ * @param {function(?grpc.web.RpcError, ?proto.kycserviceapi.VerificationThresholds)}
1453
+ * callback The callback function(error, response)
1454
+ * @return {!grpc.web.ClientReadableStream<!proto.kycserviceapi.VerificationThresholds>|undefined}
1455
+ * The XHR Node Readable Stream
1456
+ */
1457
+ proto.kycserviceapi.KYCServiceAPIServiceClient.prototype.getVerificationThresholds =
1458
+ function(request, metadata, callback) {
1459
+ return this.client_.rpcCall(this.hostname_ +
1460
+ '/kycserviceapi.KYCServiceAPIService/GetVerificationThresholds',
1461
+ request,
1462
+ metadata || {},
1463
+ methodDescriptor_KYCServiceAPIService_GetVerificationThresholds,
1464
+ callback);
1465
+ };
1466
+
1467
+
1468
+ /**
1469
+ * @param {!proto.google.protobuf.Empty} request The
1470
+ * request proto
1471
+ * @param {?Object<string, string>=} metadata User defined
1472
+ * call metadata
1473
+ * @return {!Promise<!proto.kycserviceapi.VerificationThresholds>}
1474
+ * Promise that resolves to the response
1475
+ */
1476
+ proto.kycserviceapi.KYCServiceAPIServicePromiseClient.prototype.getVerificationThresholds =
1477
+ function(request, metadata) {
1478
+ return this.client_.unaryCall(this.hostname_ +
1479
+ '/kycserviceapi.KYCServiceAPIService/GetVerificationThresholds',
1480
+ request,
1481
+ metadata || {},
1482
+ methodDescriptor_KYCServiceAPIService_GetVerificationThresholds);
1483
+ };
1484
+
1485
+
1423
1486
  module.exports = proto.kycserviceapi;
1424
1487
 
@@ -19,6 +19,8 @@ var google_api_annotations_pb = require('./google/api/annotations_pb.js');
19
19
  goog.object.extend(proto, google_api_annotations_pb);
20
20
  var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
21
21
  goog.object.extend(proto, google_protobuf_empty_pb);
22
+ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
23
+ goog.object.extend(proto, google_protobuf_timestamp_pb);
22
24
  goog.exportSymbol('proto.kycserviceapi.Attachment', null, global);
23
25
  goog.exportSymbol('proto.kycserviceapi.AttachmentSide', null, global);
24
26
  goog.exportSymbol('proto.kycserviceapi.ClearKycExternalIdRequest', null, global);
@@ -58,6 +60,7 @@ goog.exportSymbol('proto.kycserviceapi.UserKycStatusResponse', null, global);
58
60
  goog.exportSymbol('proto.kycserviceapi.UserKycSummaryResponse', null, global);
59
61
  goog.exportSymbol('proto.kycserviceapi.UserNotifyRequest', null, global);
60
62
  goog.exportSymbol('proto.kycserviceapi.UserStatus', null, global);
63
+ goog.exportSymbol('proto.kycserviceapi.VerificationThresholds', null, global);
61
64
  goog.exportSymbol('proto.kycserviceapi.VerifyDocumentRequest', null, global);
62
65
  goog.exportSymbol('proto.kycserviceapi.VerifyUserRequest', null, global);
63
66
  /**
@@ -816,6 +819,27 @@ if (goog.DEBUG && !COMPILED) {
816
819
  */
817
820
  proto.kycserviceapi.SubmitFaceCompareResultResponse.displayName = 'proto.kycserviceapi.SubmitFaceCompareResultResponse';
818
821
  }
822
+ /**
823
+ * Generated by JsPbCodeGenerator.
824
+ * @param {Array=} opt_data Optional initial data array, typically from a
825
+ * server response, or constructed directly in Javascript. The array is used
826
+ * in place and becomes part of the constructed object. It is not cloned.
827
+ * If no data is provided, the constructed object will be empty, but still
828
+ * valid.
829
+ * @extends {jspb.Message}
830
+ * @constructor
831
+ */
832
+ proto.kycserviceapi.VerificationThresholds = function(opt_data) {
833
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
834
+ };
835
+ goog.inherits(proto.kycserviceapi.VerificationThresholds, jspb.Message);
836
+ if (goog.DEBUG && !COMPILED) {
837
+ /**
838
+ * @public
839
+ * @override
840
+ */
841
+ proto.kycserviceapi.VerificationThresholds.displayName = 'proto.kycserviceapi.VerificationThresholds';
842
+ }
819
843
 
820
844
 
821
845
 
@@ -8490,6 +8514,277 @@ proto.kycserviceapi.SubmitFaceCompareResultResponse.prototype.hasResponsecode =
8490
8514
  };
8491
8515
 
8492
8516
 
8517
+
8518
+
8519
+
8520
+ if (jspb.Message.GENERATE_TO_OBJECT) {
8521
+ /**
8522
+ * Creates an object representation of this proto.
8523
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
8524
+ * Optional fields that are not set will be set to undefined.
8525
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8526
+ * For the list of reserved names please see:
8527
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
8528
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
8529
+ * JSPB instance for transitional soy proto support:
8530
+ * http://goto/soy-param-migration
8531
+ * @return {!Object}
8532
+ */
8533
+ proto.kycserviceapi.VerificationThresholds.prototype.toObject = function(opt_includeInstance) {
8534
+ return proto.kycserviceapi.VerificationThresholds.toObject(opt_includeInstance, this);
8535
+ };
8536
+
8537
+
8538
+ /**
8539
+ * Static version of the {@see toObject} method.
8540
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8541
+ * the JSPB instance for transitional soy proto support:
8542
+ * http://goto/soy-param-migration
8543
+ * @param {!proto.kycserviceapi.VerificationThresholds} msg The msg instance to transform.
8544
+ * @return {!Object}
8545
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8546
+ */
8547
+ proto.kycserviceapi.VerificationThresholds.toObject = function(includeInstance, msg) {
8548
+ var f, obj = {
8549
+ liveness: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
8550
+ match: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
8551
+ docAuthenticityFront: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
8552
+ docAuthenticityBack: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
8553
+ updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
8554
+ };
8555
+
8556
+ if (includeInstance) {
8557
+ obj.$jspbMessageInstance = msg;
8558
+ }
8559
+ return obj;
8560
+ };
8561
+ }
8562
+
8563
+
8564
+ /**
8565
+ * Deserializes binary data (in protobuf wire format).
8566
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
8567
+ * @return {!proto.kycserviceapi.VerificationThresholds}
8568
+ */
8569
+ proto.kycserviceapi.VerificationThresholds.deserializeBinary = function(bytes) {
8570
+ var reader = new jspb.BinaryReader(bytes);
8571
+ var msg = new proto.kycserviceapi.VerificationThresholds;
8572
+ return proto.kycserviceapi.VerificationThresholds.deserializeBinaryFromReader(msg, reader);
8573
+ };
8574
+
8575
+
8576
+ /**
8577
+ * Deserializes binary data (in protobuf wire format) from the
8578
+ * given reader into the given message object.
8579
+ * @param {!proto.kycserviceapi.VerificationThresholds} msg The message object to deserialize into.
8580
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8581
+ * @return {!proto.kycserviceapi.VerificationThresholds}
8582
+ */
8583
+ proto.kycserviceapi.VerificationThresholds.deserializeBinaryFromReader = function(msg, reader) {
8584
+ while (reader.nextField()) {
8585
+ if (reader.isEndGroup()) {
8586
+ break;
8587
+ }
8588
+ var field = reader.getFieldNumber();
8589
+ switch (field) {
8590
+ case 1:
8591
+ var value = /** @type {number} */ (reader.readDouble());
8592
+ msg.setLiveness(value);
8593
+ break;
8594
+ case 2:
8595
+ var value = /** @type {number} */ (reader.readDouble());
8596
+ msg.setMatch(value);
8597
+ break;
8598
+ case 3:
8599
+ var value = /** @type {number} */ (reader.readDouble());
8600
+ msg.setDocAuthenticityFront(value);
8601
+ break;
8602
+ case 4:
8603
+ var value = /** @type {number} */ (reader.readDouble());
8604
+ msg.setDocAuthenticityBack(value);
8605
+ break;
8606
+ case 5:
8607
+ var value = new google_protobuf_timestamp_pb.Timestamp;
8608
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
8609
+ msg.setUpdatedAt(value);
8610
+ break;
8611
+ default:
8612
+ reader.skipField();
8613
+ break;
8614
+ }
8615
+ }
8616
+ return msg;
8617
+ };
8618
+
8619
+
8620
+ /**
8621
+ * Serializes the message to binary data (in protobuf wire format).
8622
+ * @return {!Uint8Array}
8623
+ */
8624
+ proto.kycserviceapi.VerificationThresholds.prototype.serializeBinary = function() {
8625
+ var writer = new jspb.BinaryWriter();
8626
+ proto.kycserviceapi.VerificationThresholds.serializeBinaryToWriter(this, writer);
8627
+ return writer.getResultBuffer();
8628
+ };
8629
+
8630
+
8631
+ /**
8632
+ * Serializes the given message to binary data (in protobuf wire
8633
+ * format), writing to the given BinaryWriter.
8634
+ * @param {!proto.kycserviceapi.VerificationThresholds} message
8635
+ * @param {!jspb.BinaryWriter} writer
8636
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8637
+ */
8638
+ proto.kycserviceapi.VerificationThresholds.serializeBinaryToWriter = function(message, writer) {
8639
+ var f = undefined;
8640
+ f = message.getLiveness();
8641
+ if (f !== 0.0) {
8642
+ writer.writeDouble(
8643
+ 1,
8644
+ f
8645
+ );
8646
+ }
8647
+ f = message.getMatch();
8648
+ if (f !== 0.0) {
8649
+ writer.writeDouble(
8650
+ 2,
8651
+ f
8652
+ );
8653
+ }
8654
+ f = message.getDocAuthenticityFront();
8655
+ if (f !== 0.0) {
8656
+ writer.writeDouble(
8657
+ 3,
8658
+ f
8659
+ );
8660
+ }
8661
+ f = message.getDocAuthenticityBack();
8662
+ if (f !== 0.0) {
8663
+ writer.writeDouble(
8664
+ 4,
8665
+ f
8666
+ );
8667
+ }
8668
+ f = message.getUpdatedAt();
8669
+ if (f != null) {
8670
+ writer.writeMessage(
8671
+ 5,
8672
+ f,
8673
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
8674
+ );
8675
+ }
8676
+ };
8677
+
8678
+
8679
+ /**
8680
+ * optional double liveness = 1;
8681
+ * @return {number}
8682
+ */
8683
+ proto.kycserviceapi.VerificationThresholds.prototype.getLiveness = function() {
8684
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
8685
+ };
8686
+
8687
+
8688
+ /**
8689
+ * @param {number} value
8690
+ * @return {!proto.kycserviceapi.VerificationThresholds} returns this
8691
+ */
8692
+ proto.kycserviceapi.VerificationThresholds.prototype.setLiveness = function(value) {
8693
+ return jspb.Message.setProto3FloatField(this, 1, value);
8694
+ };
8695
+
8696
+
8697
+ /**
8698
+ * optional double match = 2;
8699
+ * @return {number}
8700
+ */
8701
+ proto.kycserviceapi.VerificationThresholds.prototype.getMatch = function() {
8702
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
8703
+ };
8704
+
8705
+
8706
+ /**
8707
+ * @param {number} value
8708
+ * @return {!proto.kycserviceapi.VerificationThresholds} returns this
8709
+ */
8710
+ proto.kycserviceapi.VerificationThresholds.prototype.setMatch = function(value) {
8711
+ return jspb.Message.setProto3FloatField(this, 2, value);
8712
+ };
8713
+
8714
+
8715
+ /**
8716
+ * optional double doc_authenticity_front = 3;
8717
+ * @return {number}
8718
+ */
8719
+ proto.kycserviceapi.VerificationThresholds.prototype.getDocAuthenticityFront = function() {
8720
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
8721
+ };
8722
+
8723
+
8724
+ /**
8725
+ * @param {number} value
8726
+ * @return {!proto.kycserviceapi.VerificationThresholds} returns this
8727
+ */
8728
+ proto.kycserviceapi.VerificationThresholds.prototype.setDocAuthenticityFront = function(value) {
8729
+ return jspb.Message.setProto3FloatField(this, 3, value);
8730
+ };
8731
+
8732
+
8733
+ /**
8734
+ * optional double doc_authenticity_back = 4;
8735
+ * @return {number}
8736
+ */
8737
+ proto.kycserviceapi.VerificationThresholds.prototype.getDocAuthenticityBack = function() {
8738
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
8739
+ };
8740
+
8741
+
8742
+ /**
8743
+ * @param {number} value
8744
+ * @return {!proto.kycserviceapi.VerificationThresholds} returns this
8745
+ */
8746
+ proto.kycserviceapi.VerificationThresholds.prototype.setDocAuthenticityBack = function(value) {
8747
+ return jspb.Message.setProto3FloatField(this, 4, value);
8748
+ };
8749
+
8750
+
8751
+ /**
8752
+ * optional google.protobuf.Timestamp updated_at = 5;
8753
+ * @return {?proto.google.protobuf.Timestamp}
8754
+ */
8755
+ proto.kycserviceapi.VerificationThresholds.prototype.getUpdatedAt = function() {
8756
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
8757
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
8758
+ };
8759
+
8760
+
8761
+ /**
8762
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
8763
+ * @return {!proto.kycserviceapi.VerificationThresholds} returns this
8764
+ */
8765
+ proto.kycserviceapi.VerificationThresholds.prototype.setUpdatedAt = function(value) {
8766
+ return jspb.Message.setWrapperField(this, 5, value);
8767
+ };
8768
+
8769
+
8770
+ /**
8771
+ * Clears the message field making it undefined.
8772
+ * @return {!proto.kycserviceapi.VerificationThresholds} returns this
8773
+ */
8774
+ proto.kycserviceapi.VerificationThresholds.prototype.clearUpdatedAt = function() {
8775
+ return this.setUpdatedAt(undefined);
8776
+ };
8777
+
8778
+
8779
+ /**
8780
+ * Returns whether this field is set.
8781
+ * @return {boolean}
8782
+ */
8783
+ proto.kycserviceapi.VerificationThresholds.prototype.hasUpdatedAt = function() {
8784
+ return jspb.Message.getField(this, 5) != null;
8785
+ };
8786
+
8787
+
8493
8788
  /**
8494
8789
  * @enum {number}
8495
8790
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/kyc-client-grpcweb",
3
- "version": "26.5.2131",
3
+ "version": "26.5.2142",
4
4
  "description": "kyc-client-grpcweb",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",