@sniipwebmaster/kyc-client-grpcweb 21.11.342 → 21.11.349

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.
@@ -585,6 +585,61 @@ proto.kycserviceapi.KYCServiceAPIServicePromiseClient.prototype.submitUserKyc =
585
585
  };
586
586
 
587
587
 
588
+ /**
589
+ * @const
590
+ * @type {!grpc.web.AbstractClientBase.MethodInfo<
591
+ * !proto.kycserviceapi.UpdateUserStatusRequest,
592
+ * !proto.kycserviceapi.ResponseCode>}
593
+ */
594
+ const methodInfo_KYCServiceAPIService_UpdateUserStatus = new grpc.web.AbstractClientBase.MethodInfo(
595
+ proto.kycserviceapi.ResponseCode,
596
+ /** @param {!proto.kycserviceapi.UpdateUserStatusRequest} request */
597
+ function(request) {
598
+ return request.serializeBinary();
599
+ },
600
+ proto.kycserviceapi.ResponseCode.deserializeBinary
601
+ );
602
+
603
+
604
+ /**
605
+ * @param {!proto.kycserviceapi.UpdateUserStatusRequest} request The
606
+ * request proto
607
+ * @param {?Object<string, string>} metadata User defined
608
+ * call metadata
609
+ * @param {function(?grpc.web.Error, ?proto.kycserviceapi.ResponseCode)}
610
+ * callback The callback function(error, response)
611
+ * @return {!grpc.web.ClientReadableStream<!proto.kycserviceapi.ResponseCode>|undefined}
612
+ * The XHR Node Readable Stream
613
+ */
614
+ proto.kycserviceapi.KYCServiceAPIServiceClient.prototype.updateUserStatus =
615
+ function(request, metadata, callback) {
616
+ return this.client_.rpcCall(this.hostname_ +
617
+ '/kycserviceapi.KYCServiceAPIService/UpdateUserStatus',
618
+ request,
619
+ metadata || {},
620
+ methodInfo_KYCServiceAPIService_UpdateUserStatus,
621
+ callback);
622
+ };
623
+
624
+
625
+ /**
626
+ * @param {!proto.kycserviceapi.UpdateUserStatusRequest} request The
627
+ * request proto
628
+ * @param {?Object<string, string>} metadata User defined
629
+ * call metadata
630
+ * @return {!Promise<!proto.kycserviceapi.ResponseCode>}
631
+ * A native promise that resolves to the response
632
+ */
633
+ proto.kycserviceapi.KYCServiceAPIServicePromiseClient.prototype.updateUserStatus =
634
+ function(request, metadata) {
635
+ return this.client_.unaryCall(this.hostname_ +
636
+ '/kycserviceapi.KYCServiceAPIService/UpdateUserStatus',
637
+ request,
638
+ metadata || {},
639
+ methodInfo_KYCServiceAPIService_UpdateUserStatus);
640
+ };
641
+
642
+
588
643
  /**
589
644
  * @const
590
645
  * @type {!grpc.web.AbstractClientBase.MethodInfo<
@@ -29,11 +29,13 @@ goog.exportSymbol('proto.kycserviceapi.RequestedDocument', null, global);
29
29
  goog.exportSymbol('proto.kycserviceapi.ResponseCode', null, global);
30
30
  goog.exportSymbol('proto.kycserviceapi.SaveDocumentRequest', null, global);
31
31
  goog.exportSymbol('proto.kycserviceapi.State', null, global);
32
+ goog.exportSymbol('proto.kycserviceapi.UpdateUserStatusRequest', null, global);
32
33
  goog.exportSymbol('proto.kycserviceapi.User', null, global);
33
34
  goog.exportSymbol('proto.kycserviceapi.UserKycRequest', null, global);
34
35
  goog.exportSymbol('proto.kycserviceapi.UserKycStatusResponse', null, global);
35
36
  goog.exportSymbol('proto.kycserviceapi.UserKycSummaryResponse', null, global);
36
37
  goog.exportSymbol('proto.kycserviceapi.UserStatus', null, global);
38
+ goog.exportSymbol('proto.kycserviceapi.UserStatusUpdateRequest', null, global);
37
39
  goog.exportSymbol('proto.kycserviceapi.VerifyDocumentRequest', null, global);
38
40
  goog.exportSymbol('proto.kycserviceapi.VerifyUserRequest', null, global);
39
41
 
@@ -3314,6 +3316,182 @@ proto.kycserviceapi.State.prototype.setRequirestwophotos = function(value) {
3314
3316
 
3315
3317
 
3316
3318
 
3319
+ /**
3320
+ * Generated by JsPbCodeGenerator.
3321
+ * @param {Array=} opt_data Optional initial data array, typically from a
3322
+ * server response, or constructed directly in Javascript. The array is used
3323
+ * in place and becomes part of the constructed object. It is not cloned.
3324
+ * If no data is provided, the constructed object will be empty, but still
3325
+ * valid.
3326
+ * @extends {jspb.Message}
3327
+ * @constructor
3328
+ */
3329
+ proto.kycserviceapi.UpdateUserStatusRequest = function(opt_data) {
3330
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3331
+ };
3332
+ goog.inherits(proto.kycserviceapi.UpdateUserStatusRequest, jspb.Message);
3333
+ if (goog.DEBUG && !COMPILED) {
3334
+ proto.kycserviceapi.UpdateUserStatusRequest.displayName = 'proto.kycserviceapi.UpdateUserStatusRequest';
3335
+ }
3336
+
3337
+
3338
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3339
+ /**
3340
+ * Creates an object representation of this proto suitable for use in Soy templates.
3341
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3342
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3343
+ * For the list of reserved names please see:
3344
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
3345
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
3346
+ * for transitional soy proto support: http://goto/soy-param-migration
3347
+ * @return {!Object}
3348
+ */
3349
+ proto.kycserviceapi.UpdateUserStatusRequest.prototype.toObject = function(opt_includeInstance) {
3350
+ return proto.kycserviceapi.UpdateUserStatusRequest.toObject(opt_includeInstance, this);
3351
+ };
3352
+
3353
+
3354
+ /**
3355
+ * Static version of the {@see toObject} method.
3356
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
3357
+ * instance for transitional soy proto support:
3358
+ * http://goto/soy-param-migration
3359
+ * @param {!proto.kycserviceapi.UpdateUserStatusRequest} msg The msg instance to transform.
3360
+ * @return {!Object}
3361
+ */
3362
+ proto.kycserviceapi.UpdateUserStatusRequest.toObject = function(includeInstance, msg) {
3363
+ var f, obj = {
3364
+ data: (f = msg.getData()) && proto.kycserviceapi.UserStatusUpdateRequest.toObject(includeInstance, f)
3365
+ };
3366
+
3367
+ if (includeInstance) {
3368
+ obj.$jspbMessageInstance = msg;
3369
+ }
3370
+ return obj;
3371
+ };
3372
+ }
3373
+
3374
+
3375
+ /**
3376
+ * Deserializes binary data (in protobuf wire format).
3377
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3378
+ * @return {!proto.kycserviceapi.UpdateUserStatusRequest}
3379
+ */
3380
+ proto.kycserviceapi.UpdateUserStatusRequest.deserializeBinary = function(bytes) {
3381
+ var reader = new jspb.BinaryReader(bytes);
3382
+ var msg = new proto.kycserviceapi.UpdateUserStatusRequest;
3383
+ return proto.kycserviceapi.UpdateUserStatusRequest.deserializeBinaryFromReader(msg, reader);
3384
+ };
3385
+
3386
+
3387
+ /**
3388
+ * Deserializes binary data (in protobuf wire format) from the
3389
+ * given reader into the given message object.
3390
+ * @param {!proto.kycserviceapi.UpdateUserStatusRequest} msg The message object to deserialize into.
3391
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3392
+ * @return {!proto.kycserviceapi.UpdateUserStatusRequest}
3393
+ */
3394
+ proto.kycserviceapi.UpdateUserStatusRequest.deserializeBinaryFromReader = function(msg, reader) {
3395
+ while (reader.nextField()) {
3396
+ if (reader.isEndGroup()) {
3397
+ break;
3398
+ }
3399
+ var field = reader.getFieldNumber();
3400
+ switch (field) {
3401
+ case 1:
3402
+ var value = new proto.kycserviceapi.UserStatusUpdateRequest;
3403
+ reader.readMessage(value,proto.kycserviceapi.UserStatusUpdateRequest.deserializeBinaryFromReader);
3404
+ msg.setData(value);
3405
+ break;
3406
+ default:
3407
+ reader.skipField();
3408
+ break;
3409
+ }
3410
+ }
3411
+ return msg;
3412
+ };
3413
+
3414
+
3415
+ /**
3416
+ * Class method variant: serializes the given message to binary data
3417
+ * (in protobuf wire format), writing to the given BinaryWriter.
3418
+ * @param {!proto.kycserviceapi.UpdateUserStatusRequest} message
3419
+ * @param {!jspb.BinaryWriter} writer
3420
+ */
3421
+ proto.kycserviceapi.UpdateUserStatusRequest.serializeBinaryToWriter = function(message, writer) {
3422
+ message.serializeBinaryToWriter(writer);
3423
+ };
3424
+
3425
+
3426
+ /**
3427
+ * Serializes the message to binary data (in protobuf wire format).
3428
+ * @return {!Uint8Array}
3429
+ */
3430
+ proto.kycserviceapi.UpdateUserStatusRequest.prototype.serializeBinary = function() {
3431
+ var writer = new jspb.BinaryWriter();
3432
+ this.serializeBinaryToWriter(writer);
3433
+ return writer.getResultBuffer();
3434
+ };
3435
+
3436
+
3437
+ /**
3438
+ * Serializes the message to binary data (in protobuf wire format),
3439
+ * writing to the given BinaryWriter.
3440
+ * @param {!jspb.BinaryWriter} writer
3441
+ */
3442
+ proto.kycserviceapi.UpdateUserStatusRequest.prototype.serializeBinaryToWriter = function (writer) {
3443
+ var f = undefined;
3444
+ f = this.getData();
3445
+ if (f != null) {
3446
+ writer.writeMessage(
3447
+ 1,
3448
+ f,
3449
+ proto.kycserviceapi.UserStatusUpdateRequest.serializeBinaryToWriter
3450
+ );
3451
+ }
3452
+ };
3453
+
3454
+
3455
+ /**
3456
+ * Creates a deep clone of this proto. No data is shared with the original.
3457
+ * @return {!proto.kycserviceapi.UpdateUserStatusRequest} The clone.
3458
+ */
3459
+ proto.kycserviceapi.UpdateUserStatusRequest.prototype.cloneMessage = function() {
3460
+ return /** @type {!proto.kycserviceapi.UpdateUserStatusRequest} */ (jspb.Message.cloneMessage(this));
3461
+ };
3462
+
3463
+
3464
+ /**
3465
+ * optional UserStatusUpdateRequest data = 1;
3466
+ * @return {proto.kycserviceapi.UserStatusUpdateRequest}
3467
+ */
3468
+ proto.kycserviceapi.UpdateUserStatusRequest.prototype.getData = function() {
3469
+ return /** @type{proto.kycserviceapi.UserStatusUpdateRequest} */ (
3470
+ jspb.Message.getWrapperField(this, proto.kycserviceapi.UserStatusUpdateRequest, 1));
3471
+ };
3472
+
3473
+
3474
+ /** @param {proto.kycserviceapi.UserStatusUpdateRequest|undefined} value */
3475
+ proto.kycserviceapi.UpdateUserStatusRequest.prototype.setData = function(value) {
3476
+ jspb.Message.setWrapperField(this, 1, value);
3477
+ };
3478
+
3479
+
3480
+ proto.kycserviceapi.UpdateUserStatusRequest.prototype.clearData = function() {
3481
+ this.setData(undefined);
3482
+ };
3483
+
3484
+
3485
+ /**
3486
+ * Returns whether this field is set.
3487
+ * @return{!boolean}
3488
+ */
3489
+ proto.kycserviceapi.UpdateUserStatusRequest.prototype.hasData = function() {
3490
+ return jspb.Message.getField(this, 1) != null;
3491
+ };
3492
+
3493
+
3494
+
3317
3495
  /**
3318
3496
  * Generated by JsPbCodeGenerator.
3319
3497
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -4359,6 +4537,192 @@ proto.kycserviceapi.UserKycSummaryResponse.prototype.clearRequestedpaymentmethod
4359
4537
 
4360
4538
 
4361
4539
 
4540
+ /**
4541
+ * Generated by JsPbCodeGenerator.
4542
+ * @param {Array=} opt_data Optional initial data array, typically from a
4543
+ * server response, or constructed directly in Javascript. The array is used
4544
+ * in place and becomes part of the constructed object. It is not cloned.
4545
+ * If no data is provided, the constructed object will be empty, but still
4546
+ * valid.
4547
+ * @extends {jspb.Message}
4548
+ * @constructor
4549
+ */
4550
+ proto.kycserviceapi.UserStatusUpdateRequest = function(opt_data) {
4551
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4552
+ };
4553
+ goog.inherits(proto.kycserviceapi.UserStatusUpdateRequest, jspb.Message);
4554
+ if (goog.DEBUG && !COMPILED) {
4555
+ proto.kycserviceapi.UserStatusUpdateRequest.displayName = 'proto.kycserviceapi.UserStatusUpdateRequest';
4556
+ }
4557
+
4558
+
4559
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4560
+ /**
4561
+ * Creates an object representation of this proto suitable for use in Soy templates.
4562
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4563
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4564
+ * For the list of reserved names please see:
4565
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
4566
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
4567
+ * for transitional soy proto support: http://goto/soy-param-migration
4568
+ * @return {!Object}
4569
+ */
4570
+ proto.kycserviceapi.UserStatusUpdateRequest.prototype.toObject = function(opt_includeInstance) {
4571
+ return proto.kycserviceapi.UserStatusUpdateRequest.toObject(opt_includeInstance, this);
4572
+ };
4573
+
4574
+
4575
+ /**
4576
+ * Static version of the {@see toObject} method.
4577
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
4578
+ * instance for transitional soy proto support:
4579
+ * http://goto/soy-param-migration
4580
+ * @param {!proto.kycserviceapi.UserStatusUpdateRequest} msg The msg instance to transform.
4581
+ * @return {!Object}
4582
+ */
4583
+ proto.kycserviceapi.UserStatusUpdateRequest.toObject = function(includeInstance, msg) {
4584
+ var f, obj = {
4585
+ userid: msg.getUserid(),
4586
+ status: msg.getStatus()
4587
+ };
4588
+
4589
+ if (includeInstance) {
4590
+ obj.$jspbMessageInstance = msg;
4591
+ }
4592
+ return obj;
4593
+ };
4594
+ }
4595
+
4596
+
4597
+ /**
4598
+ * Deserializes binary data (in protobuf wire format).
4599
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4600
+ * @return {!proto.kycserviceapi.UserStatusUpdateRequest}
4601
+ */
4602
+ proto.kycserviceapi.UserStatusUpdateRequest.deserializeBinary = function(bytes) {
4603
+ var reader = new jspb.BinaryReader(bytes);
4604
+ var msg = new proto.kycserviceapi.UserStatusUpdateRequest;
4605
+ return proto.kycserviceapi.UserStatusUpdateRequest.deserializeBinaryFromReader(msg, reader);
4606
+ };
4607
+
4608
+
4609
+ /**
4610
+ * Deserializes binary data (in protobuf wire format) from the
4611
+ * given reader into the given message object.
4612
+ * @param {!proto.kycserviceapi.UserStatusUpdateRequest} msg The message object to deserialize into.
4613
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4614
+ * @return {!proto.kycserviceapi.UserStatusUpdateRequest}
4615
+ */
4616
+ proto.kycserviceapi.UserStatusUpdateRequest.deserializeBinaryFromReader = function(msg, reader) {
4617
+ while (reader.nextField()) {
4618
+ if (reader.isEndGroup()) {
4619
+ break;
4620
+ }
4621
+ var field = reader.getFieldNumber();
4622
+ switch (field) {
4623
+ case 1:
4624
+ var value = /** @type {number} */ (reader.readInt64());
4625
+ msg.setUserid(value);
4626
+ break;
4627
+ case 2:
4628
+ var value = /** @type {!proto.kycserviceapi.UserStatus} */ (reader.readEnum());
4629
+ msg.setStatus(value);
4630
+ break;
4631
+ default:
4632
+ reader.skipField();
4633
+ break;
4634
+ }
4635
+ }
4636
+ return msg;
4637
+ };
4638
+
4639
+
4640
+ /**
4641
+ * Class method variant: serializes the given message to binary data
4642
+ * (in protobuf wire format), writing to the given BinaryWriter.
4643
+ * @param {!proto.kycserviceapi.UserStatusUpdateRequest} message
4644
+ * @param {!jspb.BinaryWriter} writer
4645
+ */
4646
+ proto.kycserviceapi.UserStatusUpdateRequest.serializeBinaryToWriter = function(message, writer) {
4647
+ message.serializeBinaryToWriter(writer);
4648
+ };
4649
+
4650
+
4651
+ /**
4652
+ * Serializes the message to binary data (in protobuf wire format).
4653
+ * @return {!Uint8Array}
4654
+ */
4655
+ proto.kycserviceapi.UserStatusUpdateRequest.prototype.serializeBinary = function() {
4656
+ var writer = new jspb.BinaryWriter();
4657
+ this.serializeBinaryToWriter(writer);
4658
+ return writer.getResultBuffer();
4659
+ };
4660
+
4661
+
4662
+ /**
4663
+ * Serializes the message to binary data (in protobuf wire format),
4664
+ * writing to the given BinaryWriter.
4665
+ * @param {!jspb.BinaryWriter} writer
4666
+ */
4667
+ proto.kycserviceapi.UserStatusUpdateRequest.prototype.serializeBinaryToWriter = function (writer) {
4668
+ var f = undefined;
4669
+ f = this.getUserid();
4670
+ if (f !== 0) {
4671
+ writer.writeInt64(
4672
+ 1,
4673
+ f
4674
+ );
4675
+ }
4676
+ f = this.getStatus();
4677
+ if (f !== 0.0) {
4678
+ writer.writeEnum(
4679
+ 2,
4680
+ f
4681
+ );
4682
+ }
4683
+ };
4684
+
4685
+
4686
+ /**
4687
+ * Creates a deep clone of this proto. No data is shared with the original.
4688
+ * @return {!proto.kycserviceapi.UserStatusUpdateRequest} The clone.
4689
+ */
4690
+ proto.kycserviceapi.UserStatusUpdateRequest.prototype.cloneMessage = function() {
4691
+ return /** @type {!proto.kycserviceapi.UserStatusUpdateRequest} */ (jspb.Message.cloneMessage(this));
4692
+ };
4693
+
4694
+
4695
+ /**
4696
+ * optional int64 userId = 1;
4697
+ * @return {number}
4698
+ */
4699
+ proto.kycserviceapi.UserStatusUpdateRequest.prototype.getUserid = function() {
4700
+ return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
4701
+ };
4702
+
4703
+
4704
+ /** @param {number} value */
4705
+ proto.kycserviceapi.UserStatusUpdateRequest.prototype.setUserid = function(value) {
4706
+ jspb.Message.setField(this, 1, value);
4707
+ };
4708
+
4709
+
4710
+ /**
4711
+ * optional UserStatus status = 2;
4712
+ * @return {!proto.kycserviceapi.UserStatus}
4713
+ */
4714
+ proto.kycserviceapi.UserStatusUpdateRequest.prototype.getStatus = function() {
4715
+ return /** @type {!proto.kycserviceapi.UserStatus} */ (jspb.Message.getFieldProto3(this, 2, 0));
4716
+ };
4717
+
4718
+
4719
+ /** @param {!proto.kycserviceapi.UserStatus} value */
4720
+ proto.kycserviceapi.UserStatusUpdateRequest.prototype.setStatus = function(value) {
4721
+ jspb.Message.setField(this, 2, value);
4722
+ };
4723
+
4724
+
4725
+
4362
4726
  /**
4363
4727
  * Generated by JsPbCodeGenerator.
4364
4728
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -4712,7 +5076,8 @@ proto.kycserviceapi.UserStatus = {
4712
5076
  USER_STATUS_REQUESTED: 0,
4713
5077
  USER_STATUS_PENDING_REVIEW: 1,
4714
5078
  USER_STATUS_VERIFIED: 2,
4715
- USER_STATUS_UNVERIFIED: 3
5079
+ USER_STATUS_UNVERIFIED: 3,
5080
+ USER_STATUS_FRAUDULENT: 4
4716
5081
  };
4717
5082
 
4718
5083
  goog.object.extend(exports, proto.kycserviceapi);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/kyc-client-grpcweb",
3
- "version": "21.11.342",
3
+ "version": "21.11.349",
4
4
  "description": "kyc-client-grpcweb",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",